]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
x86/pmtimer: fix hvm_acpi_sleep_button behavior
authorVarad Gautam <vrd@amazon.de>
Wed, 20 Feb 2019 16:06:25 +0000 (17:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Feb 2019 16:06:25 +0000 (17:06 +0100)
Commit 19fb14622e941 "x86/pmtimer: move ACPI registers from PMTState to
hvm_domain" misconfigures pm1a_sts for hvm_acpi_sleep_button with
PWRBTN_STS instead of SLPBTN_STS, which leads to
XEN_DOMCTL_SENDTRIGGER_SLEEP causing guest powerdowns. Fix this.

Signed-off-by: Varad Gautam <vrd@amazon.de>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/pmtimer.c

index 1f0d834bae1f8a0eb92d28bf42e85b1d0f75c189..402bc8e6a27e5dff6968030bb9340eba45bd2afe 100644 (file)
@@ -87,7 +87,7 @@ void hvm_acpi_sleep_button(struct domain *d)
         return;
 
     spin_lock(&s->lock);
-    d->arch.hvm.acpi.pm1a_sts |= PWRBTN_STS;
+    d->arch.hvm.acpi.pm1a_sts |= SLPBTN_STS;
     pmt_update_sci(s);
     spin_unlock(&s->lock);
 }