[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-cvs
Subject: [Xen-changelog] [xen staging] x86/pmtimer: fix hvm_acpi_sleep_button behavior
From: patchbot () xen ! org
Date: 2019-02-20 16:11:04
Message-ID: E1gwUSe-0001Dx-JB () xenbits ! xenproject ! org
[Download RAW message or body]
commit b22c900c44a2db8db1c53e269e152206e55c273f
Author: Varad Gautam <vrd@amazon.de>
AuthorDate: Wed Feb 20 17:06:25 2019 +0100
Commit: Jan Beulich <jbeulich@suse.com>
CommitDate: Wed Feb 20 17:06:25 2019 +0100
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
--
generated by git-patchbot for /home/xen/git/xen.git#staging
_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic