]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/acpi/sleep: Register to the acpi_suspend_lowlevel a callback.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 02:16:50 +0000 (10:16 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 17:08:36 +0000 (13:08 -0400)
commit658636f4de23c591e81f393a758ad0c04cde0122
tree2fc6c57a37b3b56cbf9f6aaf6a90c48f748e1187
parent0f5af2201742b65784e2e8096fd41f3df8f0cfaa
xen/acpi/sleep: Register to the acpi_suspend_lowlevel a callback.

We piggyback on "x86/acpi: Provide registration for acpi_suspend_lowlevel."
to register a Xen version of the callback. The callback does not
do anything special - except it omits the x86_acpi_suspend_lowlevel.
It does that b/c during suspend it tries to save cr8 values (which
the hypervisor does not support), and then on resume path the
cr3, cr8, idt, and gdt are all resumed which clashes with what
the hypervisor has set up for the guest.

Signed-off-by: Liang Tang <liang.tang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
include/xen/acpi.h