All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] HVM Virtual S3
@ 2008-05-08  5:13 Ke, Liping
  2008-05-08  7:02 ` James Harper
  2008-05-08 12:25 ` Ian Pratt
  0 siblings, 2 replies; 51+ messages in thread
From: Ke, Liping @ 2008-05-08  5:13 UTC (permalink / raw)
  To: xen-devel; +Cc: Tian, Kevin, Jiang, Yunhong, Yu, Ke, Ke, Liping

[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
- 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.

How to use it:
- apply this patch to changeset 17589:9a6ad687ec20
- 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 resume <domid>"

Note: FC6/FC5 guest can successfully S3 suspend/resume in both text mode and
X window. Also, with vtd-enabled, network card assigned to HVM, it works
too. However, Windows guest can not suspend, because the windows
driver for QEMU VGA and monitor has no power management support, and
windows refuse to enter S3 sleep state. 

Kevin/Ke/Liping

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH 0/4] HVM Virtual S3
@ 2007-05-16 16:48 Yu, Ke
  2007-05-16 21:59 ` Keir Fraser
                   ` (2 more replies)
  0 siblings, 3 replies; 51+ messages in thread
From: Yu, Ke @ 2007-05-16 16:48 UTC (permalink / raw)
  To: xen-devel

[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
- 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 VMXASSIST BASE, which
will start rombios post code
- rombios post code will start s3 resume by jumping to wakeup vector set
by guest OS.

How to use it:
- apply this patch to changeset 15050:05c128b0188a
- 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 resume <domid>"

Note: FC6 guest can successfully S3 suspend/resume in both text mode and
X window. However, Windows guest can not suspend, because the windows
driver for QEMU VGA and monitor has no power management support, and
windows refuse to enter S3 sleep state. 

Kevin/Ke

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2008-05-16  1:46 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08  5:13 [PATCH 0/4] HVM Virtual S3 Ke, Liping
2008-05-08  7:02 ` James Harper
2008-05-08  7:10   ` Yu, Ke
2008-05-08  7:24   ` Ke, Liping
2008-05-08 12:25 ` Ian Pratt
2008-05-08 14:57   ` Ke, Liping
2008-05-08 15:03     ` Keir Fraser
2008-05-08 15:10     ` Yu, Ke
2008-05-09  9:58       ` Ke, Liping
2008-05-09 10:10         ` Keir Fraser
2008-05-09 11:59         ` Ian Pratt
2008-05-14  9:50           ` Ke, Liping
2008-05-14 12:17             ` Keir Fraser
2008-05-15  1:31               ` Ke, Liping
2008-05-15  7:33                 ` Keir Fraser
2008-05-15 11:45                   ` Ian Pratt
2008-05-15 11:51                     ` Keir Fraser
2008-05-15 12:42                       ` Ian Pratt
2008-05-15 12:58                         ` Keir Fraser
2008-05-16  1:46                           ` Ke, Liping
2008-05-08 15:11     ` Ian Pratt
2008-05-08 15:20       ` Keir Fraser
2008-05-08 15:28         ` Yu, Ke
  -- strict thread matches above, loose matches on Subject: below --
2007-05-16 16:48 Yu, Ke
2007-05-16 21:59 ` Keir Fraser
2007-05-16 22:33   ` Keir Fraser
2007-05-17  2:28     ` Yu, Ke
2007-05-18  2:38     ` Tian, Kevin
2007-05-18  6:43       ` Keir Fraser
2007-05-16 22:29 ` Keir Fraser
2007-05-17  2:32   ` Yu, Ke
2007-05-17  7:41     ` Keir Fraser
2007-05-17 12:39       ` Yu, Ke
2007-05-17 12:50         ` Zhang, Jingke
2007-05-17 13:06         ` Keir Fraser
2007-05-17 13:16           ` Yu, Ke
2007-05-17 13:33             ` Keir Fraser
2007-05-18  2:07               ` Tian, Kevin
2007-05-21  3:10           ` Yu, Ke
2007-05-21  6:25             ` Keir Fraser
2007-05-17 20:24   ` Kaushik Barde
2007-05-18  2:05     ` Yu, Ke
2007-05-18  4:22       ` Kaushik Barde
2007-05-18  4:29         ` Yu, Ke
2007-05-17  3:14 ` Kaushik Barde
2007-05-17  4:20   ` Yu, Ke
2007-05-17  9:54     ` Ian Pratt
2007-05-17 14:08       ` Yu, Ke
2007-05-17 14:14         ` Ian Pratt
2007-05-17 14:17           ` Yu, Ke
2007-05-31 10:59             ` Tim Deegan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.