Ben Thomas
2006-May-08 18:49 UTC
[Xen-devel] [PATCH] - add rudimentary poweroff support for fully-virtualized domains via ACPI
Add rudimentary ACPI support which allows a fully virtualized domain
to perform a poweroff via the S5 state. This involves adding S5
information to the ASL file; adding ACPI I/O address processing to
qemu and modifying the FADT to point to these specific I/O addresses.
Note that this is a rudimentary implementation, which is expected
to allow growth over time. Currently, only allow/detect writes
to one of the PM registers, even though the S5 package specifies
data for both. Currently, this is sufficient for the kernels
tested. (Specifically, use of _PST, and _GST and other methods
are unneccessary and not implemented.)
As with all ACPI changes, understanding what to do was more painful
than the trivial amount of code required.
Prior to this change, some domains would simply spin forever in their
kernel. With this change, the poweroff is signaled to qemu (just
like other poweroff cases) and the domain is terminated as a
poweroff request.
Signed-off-by: Ben Thomas(ben@virtualiron.com)
--
------------------------------------------------------------------------
Ben Thomas Virtual Iron Software
bthomas@virtualiron.com Tower 1, Floor 2
978-849-1214 900 Chelmsford Street
Lowell, MA 01851
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel