xen / ACPI / sleep: Register an acpi_suspend_lowlevel callback.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 14 May 2013 17:46:12 +0000 (17:46 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Jun 2013 21:36:30 +0000 (23:36 +0200)
commit068e0dc7b7c1db9801e3d7f2ba5cb1d2a552a35b
treee61ae45516a78c848db96b5cd68452453b0eb2de
parentd6a77ead21b69c395ca6d09a066ededfac601bcc
xen / ACPI / sleep: Register an acpi_suspend_lowlevel 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.

This is necessary b/c during suspend the generic code tries to write
cr3 values that 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>
Tested-by: Ben Guthro <benjamin.guthro@citrix.com>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/xen/acpi.h