diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-03-13 19:19:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-11 15:12:10 +0200 |
commit | ad76f3e8f57cef368fa98f2d4d8902ad66481a3e (patch) | |
tree | 5cd7e8ae94c165071634c0eb78b38428c99cfc2f | |
parent | 043327875298030095f9c5d04bd41def28275175 (diff) | |
download | lwn-ad76f3e8f57cef368fa98f2d4d8902ad66481a3e.tar.gz lwn-ad76f3e8f57cef368fa98f2d4d8902ad66481a3e.zip |
misc/pvpanic: add shutdown event definition
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.
The event was added to the specification in qemu commit
73279cecca03 ("docs/specs/pvpanic: document shutdown event").
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240313-pvpanic-shutdown-header-v1-2-7f1970d66366@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/uapi/misc/pvpanic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/misc/pvpanic.h b/include/uapi/misc/pvpanic.h index 9ea6a965ca7a..3f1745cd1b52 100644 --- a/include/uapi/misc/pvpanic.h +++ b/include/uapi/misc/pvpanic.h @@ -7,5 +7,6 @@ #define PVPANIC_PANICKED _BITUL(0) #define PVPANIC_CRASH_LOADED _BITUL(1) +#define PVPANIC_SHUTDOWN _BITUL(2) #endif /* __PVPANIC_H__ */ |