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: "Ke, Liping" <liping.ke@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 0/4] HVM Virtual S3
From: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxxx>
Date: Thu, 8 May 2008 13:25:05 +0100
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx>
Delivery-date: Thu, 08 May 2008 05:25:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <391BF3CDD2DC0848B40ACB72FA97AD590352E058@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <391BF3CDD2DC0848B40ACB72FA97AD590352E058@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aciwyj3GC5kFZyVcS9eJk6QW6cxy6gAO58GA
Thread-topic: [Xen-devel] [PATCH 0/4] HVM Virtual S3
> The main idea is:
> - emulate ACPI PM1A control resiger in QEMU to capture guest S3
request
> - when QEMU capture guest S3 request, it call hypercall to trap to Xen
> - Xen will suspend HVM by reseting all vcpus
> - on resume, "xm resume" will call hypercall to trap to Xen
> - Xen will resume HVM by setting HVM vcpu EIP to 0xfff0, cs base to
> 0xf0000,
>   and also set other related registers/msr to the correct
> value/attributes
>   in realmode environment which will start from rombios post Entry
code
>   in realmode directly when resuming.
> - rombios post code will start s3 resume by jumping to wakeup vector
> set
>   by guest OS.

Have you checked save/restore works when the guest is in S3 state? This
is essential for some of the server (as opposed to client) use cases for
guest S3.

[One thing to watch out for is that if the guest is in S3 it should be
possible to skip the usual synchronization with PV drivers as they will
already be shutdown.]


Further, do we actually need the s3 resume hypercall? Couldn't we just
put the VCPUs and xen-emulated devices into the right state for resume
at the end of s3 sleep and just leave the domain paused (i.e.
unscheduled)?


Also, do you have plans to implement an "xm send-power-event" type thing
that enables us to inform the guest of actions such as lid switch
open/close, power cable in/out, power button pressed etc ?

Many Thanks,
Ian




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