]> xenbits.xensource.com Git - libvirt.git/commit
qemu: refresh internal domain state after reset
authorKristina Hanicova <khanicov@redhat.com>
Tue, 6 Dec 2022 13:58:18 +0000 (14:58 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 6 Dec 2022 15:24:52 +0000 (16:24 +0100)
commitf47af66624f67a0db1967a5f8c86d4e4c41e0194
tree1a904482f03dcae8eb1b2f4ae500c761e273c785
parent7a2034127010598b91fa576f72f330baf50c1085
qemu: refresh internal domain state after reset

Internal domain state may change during the reset and qemu does
not always send events about it.  In case it happens, internal
state of the domain in libvirt would be inconsistent with the
internal state in qemu which could cause additional problems
(e.g. cdrom tray state can change from open to closed).  The
solution is to refresh state after a successful reset to query
qemu about the current internal domain state.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1824722

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c