From: Varad Gautam Date: Wed, 20 Feb 2019 16:06:25 +0000 (+0100) Subject: x86/pmtimer: fix hvm_acpi_sleep_button behavior X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b22c900c44a2db8db1c53e269e152206e55c273f;p=people%2Fpauldu%2Fxen.git 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 Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c index 1f0d834bae..402bc8e6a2 100644 --- 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 *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); }