Skip to content

Commit

Permalink
misc/pvpanic: add shutdown event definition
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/20240313-pvpanic-shutdown-header-v1-2-7f1970d66366@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
t-8ch authored and gregkh committed Apr 11, 2024
1 parent 0433278 commit ad76f3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/misc/pvpanic.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@

#define PVPANIC_PANICKED _BITUL(0)
#define PVPANIC_CRASH_LOADED _BITUL(1)
#define PVPANIC_SHUTDOWN _BITUL(2)

#endif /* __PVPANIC_H__ */

0 comments on commit ad76f3e

Please sign in to comment.