]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: Refresh data from qemu monitor after migration
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 Sep 2017 14:16:08 +0000 (16:16 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Sep 2017 07:09:14 +0000 (09:09 +0200)
commit4b480d10768c7a288c10e2e39f6a2bf275a0eb69
tree417a085501737d23d8535d01547afca17a801d3b
parentcf30a8cabd5943992e30c45efdd5fd7b82dd53cc
qemu: process: Refresh data from qemu monitor after migration

Some values we read from the qemu monitor may be changed with the actual
state by the incoming migration. This means that we should refresh
certain things only after the migration has finished.

This is mostly visible in the cdrom tray state, which is by default
closed but may be opened by the guest OS. This would be refreshed before
qemu transferred the actual state and thus libvirt would think that the
tray is closed.

Note that this patch moves only a few obvious query commands. Others may
be moved later after individual assessment.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1463168
src/qemu/qemu_process.c