On Tue, Nov 28 2023, Thomas Weißschuh <tho...@t-8ch.de> wrote: > 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. > > Signed-off-by: Thomas Weißschuh <tho...@t-8ch.de> > --- > docs/specs/pvpanic.rst | 2 ++ > hw/misc/pvpanic.c | 5 +++++ > include/hw/misc/pvpanic.h | 2 +- > include/standard-headers/linux/pvpanic.h | 1 + > 4 files changed, 9 insertions(+), 1 deletion(-)
(...) > diff --git a/include/standard-headers/linux/pvpanic.h > b/include/standard-headers/linux/pvpanic.h > index 54b7485390d3..38e53ad45929 100644 > --- a/include/standard-headers/linux/pvpanic.h > +++ b/include/standard-headers/linux/pvpanic.h > @@ -5,5 +5,6 @@ > > #define PVPANIC_PANICKED (1 << 0) > #define PVPANIC_CRASH_LOADED (1 << 1) > +#define PVPANIC_SHUTDOWN (1 << 2) > > #endif /* __PVPANIC_H__ */ > This hunk needs to come in via a separate headers update, or has to be split out into a placeholder patch if it is not included in the Linux kernel yet.