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 0/4] HVM Virtual S3

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 0/4] HVM Virtual S3
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Fri, 18 May 2007 10:38:45 +0800
Delivery-date: Thu, 17 May 2007 19:37:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C271455F.7823%Keir.Fraser@xxxxxxxxxxxx>
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: AceX2gAl4h+XcEYPRxOJnM8JUiP1/QAK20w3AAE2ZE8AOoy7cA==
Thread-topic: [Xen-devel] [PATCH 0/4] HVM Virtual S3
>From: Keir Fraser
>Sent: 2007年5月17日 6:34
>
>Oh, I see there is device state to be reset in QEMU. Emulating the port
>access in QEMU makes sense then, but I wonder if rather than adding
>an extra
>hypercall command we could emulate it in both Xen and QEMU: Xen
>emulates the
>instruction, resets state and triggers domain shutdown, then passes the
>port
>access up to QEMU so it does its thing also. We do this emulate-in-both
>for
>other things already (e.g., the CMOS index register I believe).
>
> -- Keir
>

I doubt whether this will bring some tricky issues if Qemu happens 
to inject some event after Xen's reset but before Qemu's reset. If 
that event results a stale pending interrupt after Xen resets vPIC or 
vIOAPIC, will that result a spurious interrupt after HVM is resumed? 
By current style, Qemu first reset all virtual devices and thus stop 
interrupt sources. Then it's safe to let Xen do a full reset subsequently.

Also normally the reason to put Qemu logic into Xen is for performance. For 
virtual S3 interception, it doesn't matter since only resume time is 
the concern.

Just doubt whether it's worthy of such split anyway. :-)

Of course above concern is only for one path per your on-going 
discussion. For the other path on top of save/restore, it's always 
OK since domain is re-created.

Thanks,
Kevin

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