mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/misc/pvpanic: add support for normal shutdowns
Shutdown requests are normally hardware dependent. By extending pvpanic to also handle shutdown requests, guests can submit such requests with an easily implementable and cross-platform mechanism. Acked-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de> Message-Id: <20240527-pvpanic-shutdown-v8-5-5a28ec02558b@t-8ch.de> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
462dc749c1
commit
6269086b01
4 changed files with 14 additions and 1 deletions
|
@ -20,7 +20,9 @@
|
|||
|
||||
#include "standard-headers/misc/pvpanic.h"
|
||||
|
||||
#define PVPANIC_EVENTS (PVPANIC_PANICKED | PVPANIC_CRASH_LOADED)
|
||||
#define PVPANIC_EVENTS (PVPANIC_PANICKED | \
|
||||
PVPANIC_CRASH_LOADED | \
|
||||
PVPANIC_SHUTDOWN)
|
||||
|
||||
#define TYPE_PVPANIC_ISA_DEVICE "pvpanic"
|
||||
#define TYPE_PVPANIC_PCI_DEVICE "pvpanic-pci"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue