]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refresh the current size of virtio-mem on monitor reconnect
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Nov 2020 10:35:00 +0000 (11:35 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 1 Oct 2021 09:04:53 +0000 (11:04 +0200)
commit5c2d6908a6396f24a9a859edd636363944fdf386
treedad40e7bd0a9e4977e06cb1590a8c387bdaa5574
parent9985f62b51492a1df57713f99eee860383c11f67
qemu: Refresh the current size of virtio-mem on monitor reconnect

If the QEMU driver restarts it loses the track of the current size
of virtio-mem (because it's runtime type of information and thus
not stored in XML) and therefore, we have to refresh it when
reconnecting to the domain monitor.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c