]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Do not skip virCPUUpdateLive if priv->origCPU is set
authorJiri Denemark <jdenemar@redhat.com>
Wed, 21 Jun 2017 13:31:38 +0000 (15:31 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 21 Jun 2017 14:20:53 +0000 (16:20 +0200)
commiteabb0002ca0bba3c5a94d16fb385783de7b144a5
tree9dadc32df5256d9ccf2b90c159dae8ab77564fa8
parente8589963bccbd23c2b2df973406cbbde27d14f04
qemu: Do not skip virCPUUpdateLive if priv->origCPU is set

Even though we got both the original CPU (used for starting a domain)
and the updated version (the CPU really provided by QEMU) during
incoming migration, restore, or snapshot revert, we still need to update
the CPU according to the data we got from the freshly started QEMU.
Otherwise we don't know whether the CPU we got from QEMU matches the one
before migration. We just need to keep the original CPU in
priv->origCPU.

Messed up by me in v3.4.0-58-g8e34f4781.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_process.c