[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
- [PATCH v7 0/7] hw/misc/pvpanic: add support for normal shutdowns, Thomas Weißschuh, 2024/03/23
- [PATCH v7 2/7] tests/qtest/pvpanic: use centralized definition of supported events, Thomas Weißschuh, 2024/03/23
- [PATCH v7 3/7] hw/misc/pvpanic: add local definition for PVPANIC_SHUTDOWN,
Thomas Weißschuh <=
- [PATCH v7 4/7] hw/misc/pvpanic: add support for normal shutdowns, Thomas Weißschuh, 2024/03/23
- [PATCH v7 1/7] hw/misc/pvpanic: centralize definition of supported events, Thomas Weißschuh, 2024/03/23
- [PATCH v7 7/7] Revert "docs/specs/pvpanic: mark shutdown event as not implemented", Thomas Weißschuh, 2024/03/23
- [PATCH v7 5/7] pvpanic: Emit GUEST_PVSHUTDOWN QMP event on pvpanic shutdown signal, Thomas Weißschuh, 2024/03/23
- [PATCH v7 6/7] tests/qtest/pvpanic: add tests for pvshutdown event, Thomas Weißschuh, 2024/03/23