Re: [PATCH] qemu: process: Ignore 'RESET' event during startup

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

 



On Fri, Jul 23, 2021 at 16:46:14 +0200, Peter Krempa wrote:
> In cases when we are adding a <transient/> disk with sharing backend
> (and thus hotplugging it) we need to re-initialize ACPI tables so that
> the VM boots from the correct device.
> 
> This has a side-effect of emitting the RESET event and handling it which
> in case when the 'on_reset' policy is set to 'destroy' can even kill the
> VM.
> 
> Fix this by ignoring RESET events during startup of the VM.
> 
> Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
> ---
>  src/qemu/qemu_process.c | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)

I'll be posting another version of this as QEMU on aarch64 uses a
SHUTDOWN event instead of RESET.




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux