[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] qmp: don't emit the RESET event on wakeup
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] qmp: don't emit the RESET event on wakeup |
Date: |
Thu, 18 Jul 2019 13:06:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
On 18/07/19 12:39, Nicholas Piggin wrote:
> Commit 1405819637f53 ("qmp: don't emit the RESET event on wakeup from
> S3") changed system wakeup to avoid calling qapi_event_send_reset.
> Commit 76ed4b18debfe ("s390/ipl: fix ipl with -no-reboot") appears to
> have inadvertently broken that logic.
>
> Signed-off-by: Nicholas Piggin <address@hidden>
> ---
> I'm not quite sure if this patch is correct and haven't tested it, I
> found it by inspection. If this patch is incorrect, I will have to
> adjust patch 2.
>
> vl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/vl.c b/vl.c
> index 5089fce6c5..ef3c7ab8b8 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -1550,7 +1550,7 @@ void qemu_system_reset(ShutdownCause reason)
> } else {
> qemu_devices_reset();
> }
> - if (reason != SHUTDOWN_CAUSE_SUBSYSTEM_RESET) {
> + if (reason && reason != SHUTDOWN_CAUSE_SUBSYSTEM_RESET) {
> qapi_event_send_reset(shutdown_caused_by_guest(reason), reason);
> }
> cpu_synchronize_all_post_reset();
>
Yes, it seems correct and I've queued it for 4.1.
Paolo
[Qemu-devel] [PATCH 2/3] machine: Add wakeup method to MachineClass, Nicholas Piggin, 2019/07/18
[Qemu-devel] [PATCH 3/3] spapr: Implement ibm,suspend-me, Nicholas Piggin, 2019/07/18
Re: [Qemu-devel] [PATCH 0/3] Series to implement suspend for ppc/spapr, Paolo Bonzini, 2019/07/18