qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/3] hw/misc/pvpanic: add support for normal shutdowns


From: Cornelia Huck
Subject: Re: [PATCH v2 3/3] hw/misc/pvpanic: add support for normal shutdowns
Date: Wed, 29 Nov 2023 09:23:46 +0100
User-agent: Notmuch/0.37 (https://notmuchmail.org)

On Tue, Nov 28 2023, Thomas Weißschuh <thomas@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 <thomas@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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]