Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
ad76f3e8 04332787

+1
+1
include/uapi/misc/pvpanic.h
··· 7 7 8 8 #define PVPANIC_PANICKED _BITUL(0) 9 9 #define PVPANIC_CRASH_LOADED _BITUL(1) 10 + #define PVPANIC_SHUTDOWN _BITUL(2) 10 11 11 12 #endif /* __PVPANIC_H__ */