WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 3/10] Add HVM support
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2B9150F.122EC%keir@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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