mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
ad76f3e8f5
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>
13 lines
272 B
C
13 lines
272 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
|
|
#ifndef __PVPANIC_H__
|
|
#define __PVPANIC_H__
|
|
|
|
#include <linux/const.h>
|
|
|
|
#define PVPANIC_PANICKED _BITUL(0)
|
|
#define PVPANIC_CRASH_LOADED _BITUL(1)
|
|
#define PVPANIC_SHUTDOWN _BITUL(2)
|
|
|
|
#endif /* __PVPANIC_H__ */
|