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(a)redhat.com>
---
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.