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)
commitb22c900c44a2db8db1c53e269e152206e55c273f
tree5bf9261ac48e69778691e49554bc264f1eaf4704
parent3c5552954c5c63860ccc01c6bc4f9c077bc26072
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>
xen/arch/x86/hvm/pmtimer.c