qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v7 3/7] hw/misc/pvpanic: add local definition for PVPANIC_SHUTDOW


From: Thomas Weißschuh
Subject: [PATCH v7 3/7] hw/misc/pvpanic: add local definition for PVPANIC_SHUTDOWN
Date: Sat, 23 Mar 2024 10:39:08 +0100

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(+)

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"

-- 
2.44.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]