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/
Home Products Support Community News


Re: [Xen-devel] [PATCH 0/4] HVM Virtual S3

To: "Yu, Ke" <ke.yu@xxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/4] HVM Virtual S3
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 21 May 2007 07:25:50 +0100
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Delivery-date: Sun, 20 May 2007 23:22:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1104166E0B63A341805FDB977862AAD2408A1E@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-topic: [Xen-devel] [PATCH 0/4] HVM Virtual S3
User-agent: Microsoft-Entourage/
On 21/5/07 04:10, "Yu, Ke" <ke.yu@xxxxxxxxx> wrote:

> 1. For HVM without PV, QEMU call xc_save, qemu_savevm,... at the virtual S3
> final stage.

In this case S3 should somehow be an option to 'xm save', so an alternative
to doing an immediate remote shutdown on the HVM guest. Instead we would
inject a S3 event and when the guest enters S3 qemu would do the remote
shutdown at that point. This has to be an option to 'xm save', or perhaps a
domain config option, because not all guests will respond to PM events to
enter S3 state.

> 2. For HVM with PV, need also add PV driver suspend/resume interface to
> disconnect/reconnect xenbus connection.

Possibly we can leave the S3 kickoff to the PV drivers. So xend notifies PV
drivers to suspend, they do their thing, kick S3 code in a guest-OS-specific
way, guest enters S3, qemu does remote shutdown. Then on wakeup the S3
restore code runs before PV-driver restore.

 -- Keir

> - I implement the basic Virtual S3 code and leave interface for save/restore
> - You or the PV maintainer add the above save/restore logic upon the  basic
> virtual S3 code.

Xen-devel mailing list