[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] [PATCH 3/10] Add HVM support


  • To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Tue, 10 Jul 2007 20:49:53 +0800
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 10 Jul 2007 05:47:51 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Ace4v8AvEHvNElKqQi6Qqle8QqzaiAKGA7QQAAVN3AA=
  • Thread-topic: [Xen-devel] [PATCH 3/10] Add HVM support

>From: Keir Fraser [mailto:keir@xxxxxxxxxxxxx]
>Sent: 2007年7月10日 17:51
>
>Kevin,
>
>Is it documented anywhere in which CPU states VMCS synchronisation
>may be
>lost? I see it makes sense that S3 would do so since the CPUs are
>powered
>off in that state (although I don't see this documented anywhere -- maybe
>it's 'obvious'), but what about e.g., Deep Sleep (C states)?

I don't see either. Since S3 is triggered by I/O write to chipset, CPUs 
are immediately powered off as result and thus internal VMCS cache 
is also lost. All the CPU context favored by system software should 
be saved by system software before that I/O write. So I thought it as 
'obvious'. :-)

For deep sleep states, IPI is taken as break event to bring that 
CPU back to working state (C0).

>
>Shouldn't you VMXOFF before S3?
>

Yes, it should. Actually for normal S3 path, it's not necessary since all 
the CPUs are reset after resume. However it's required at least for:
        - failure to do S3 suspend
        - S1 support
In above two cases, CPUs are still powered while VMXON state 
makes physical CPU blocking INIT IPI which makes smp resume 
failed.

I just realized it recently. Do you like to piggyback fix together with 
this patch, or I may send out an incremental one later?

Thanks,
Kevin

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.