Message ID | 20240323-pvpanic-shutdown-v7-3-4ac1fd546d6f@t-8ch.de |
---|---|
State | New |
Headers | show |
Series | hw/misc/pvpanic: add support for normal shutdowns | expand |
diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h index 947468b81b1a..926aa64838f9 100644 --- a/include/hw/misc/pvpanic.h +++ b/include/hw/misc/pvpanic.h @@ -20,6 +20,11 @@ #include "standard-headers/linux/pvpanic.h" +#ifdef PVPANIC_SHUTDOWN +#error PVPANIC_SHUTDOWN is already defined +#endif +#define PVPANIC_SHUTDOWN (1 << 2) + #define PVPANIC_EVENTS (PVPANIC_PANICKED | PVPANIC_CRASH_LOADED) #define TYPE_PVPANIC_ISA_DEVICE "pvpanic"
PVPANIC_* defines are imported from the kernel via standard-header/pvpanic.h. For that the kernel needs to pick up the changes from qemu docs/specs/pvpanic.rst which takes time. The actual value of the define is known as the authoritative source comes from the qemu tree in docs/specs/pvpanic.rst, where it was added in commit 73279cecca03 ("docs/specs/pvpanic: document shutdown event"). Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de> --- include/hw/misc/pvpanic.h | 5 +++++ 1 file changed, 5 insertions(+)