[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] ipmi: Implement shutdown via ACPI overtemp
From: |
minyard |
Subject: |
[Qemu-devel] [PATCH 4/5] ipmi: Implement shutdown via ACPI overtemp |
Date: |
Thu, 8 Sep 2016 14:52:32 -0500 |
From: Corey Minyard <address@hidden>
This is allowed by the IPMI specification for graceful shutdown,
so implement it.
Signed-off-by: Corey Minyard <address@hidden>
---
hw/ipmi/ipmi.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/hw/ipmi/ipmi.c b/hw/ipmi/ipmi.c
index f91c7b7..5cf1caa 100644
--- a/hw/ipmi/ipmi.c
+++ b/hw/ipmi/ipmi.c
@@ -61,9 +61,15 @@ static int ipmi_do_hw_op(IPMIInterface *s, enum ipmi_op op,
int checkonly)
qmp_inject_nmi(NULL);
return 0;
+ case IPMI_SHUTDOWN_VIA_ACPI_OVERTEMP:
+ if (checkonly) {
+ return 0;
+ }
+ qemu_system_powerdown_request();
+ return 0;
+
case IPMI_POWERCYCLE_CHASSIS:
case IPMI_PULSE_DIAG_IRQ:
- case IPMI_SHUTDOWN_VIA_ACPI_OVERTEMP:
case IPMI_POWERON_CHASSIS:
default:
return IPMI_CC_COMMAND_NOT_SUPPORTED;
--
2.7.4
- [Qemu-devel] [PATCH 0/5] ipmi: Minor fixes, minyard, 2016/09/08
- [Qemu-devel] [PATCH 2/5] ipmi_bmc_sim: Remove an unnecessary mutex, minyard, 2016/09/08
- [Qemu-devel] [PATCH 4/5] ipmi: Implement shutdown via ACPI overtemp,
minyard <=
- [Qemu-devel] [PATCH 3/5] ipmi: chassis poweroff should use qemu_system_shutdown_request(), minyard, 2016/09/08
- [Qemu-devel] [PATCH 1/5] ipmi: Remove hotplug from IPMI BMCs, minyard, 2016/09/08
- [Qemu-devel] [PATCH 5/5] ipmi: fix build config variable name for ipmi_bmc_extern.o, minyard, 2016/09/08
- [Qemu-devel] [PATCH] ipmi: Add graceful shutdown handling to the external BMC, minyard, 2016/09/12