File 5c6d7b01-x86-pmtimer-fix-hvm_acpi_sleep_button.patch of Package xen.openSUSE_Leap_42.3_Update

# Commit b22c900c44a2db8db1c53e269e152206e55c273f
# Date 2019-02-20 17:06:25 +0100
# Author Varad Gautam <vrd@amazon.de>
# Committer Jan Beulich <jbeulich@suse.com>
x86/pmtimer: fix hvm_acpi_sleep_button behavior

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>

--- a/xen/arch/x86/hvm/pmtimer.c
+++ b/xen/arch/x86/hvm/pmtimer.c
@@ -87,7 +87,7 @@ void hvm_acpi_sleep_button(struct domain
         return;
 
     spin_lock(&s->lock);
-    d->arch.hvm_domain.acpi.pm1a_sts |= PWRBTN_STS;
+    d->arch.hvm_domain.acpi.pm1a_sts |= SLPBTN_STS;
     pmt_update_sci(s);
     spin_unlock(&s->lock);
 }
openSUSE Build Service is sponsored by