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

[Xen-devel] [PATCH 0/4] HVM Virtual S3 --- Revised and resent

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 0/4] HVM Virtual S3 --- Revised and resent
From: "Ke, Liping" <liping.ke@xxxxxxxxx>
Date: Tue, 20 May 2008 14:59:19 +0800
Delivery-date: Tue, 20 May 2008 00:00:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: Aci6Rwan30LCwMVNRjCgsXSrb2rzYw==
Thread-topic: [PATCH 0/4] HVM Virtual S3 --- Revised and resent
Hi, all
According to feedback those days, we revised and resend HVM virtual S3
patch. 
Changes includes:
1) We merged part of original S3 suspend and resume path, paused domain

    when do s3 suspend. Then unpause domain when s3 resume.
2) Add xm trigger <domid> s3suspend interface for triggering s3_resume 
    operation for the suspended domain.
3) Add a flag for mark s3_suspended domain
4) make s3 suspended domain could be saved/restored.

We tested the following four patches based on cs17655 on below
environment:

HVM guest FC8-32e X-window mode, vtd-enabled
HVM guest FC8-32e X-window mode, no-vtd with PV drivers vif
HVM guest FC6-32p test mode, vtd-enabled
HVM guest FC6-32p test, no-vtd with PV drivers vif
Also we test s3_suspend->save->restore->s3_resume operation seq for
above
four scenario. All works.
No-windows HVM is tested since we have now vga drivers in qemu don't
support.

Thanks& Regards,
Criping



[PATCH 0/4] HVM Virtual S3

These set of patches are our prototype for HVM virtual 
ACPI S3 support:
 - patch 1/4: Xen interface for HVM S3
 - patch 2/4: QEMU interface for HVM S3
 - patch 3/4: rombios interface for HVM S3
 - patch 4/4: xend interface for HVM 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
- HVM suspend operation now includes below steps:
  1. reset all vcpus, timers
  2. 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.
  3. rombios post code will start s3 resume by jumping to wakeup vector
set
     by guest OS.
  4. pause domain
- On resume, "xm trigger <domid> s3resume will call hypercall to trap to
XEN

How to use it:
- apply this patch to changeset 17655:2ada81810ddb
- create and boot HVM domain 
- In HVM guest, enter S3 state
  * for Linux, "echo mem >/sys/power/state"
  * for Windows, shutdown windows by Standby
- to resume HVM domain, "xm trigger <domid> s3resume"



Kevin/Ke/Liping



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