]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Don't update CPU when formatting live def
authorJiri Denemark <jdenemar@redhat.com>
Fri, 30 Jun 2017 14:55:20 +0000 (16:55 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 21 Sep 2017 13:27:39 +0000 (15:27 +0200)
commit06f75ff2cb292e2658b4f2f6949c700550006272
tree4e4e572ff16e8cfe2ed0cf1fe778b8f1a64690d7
parent7e874326a3eca1233017ab91774d845b99869af1
qemu: Don't update CPU when formatting live def

Since commit v2.2.0-199-g7ce711a30e libvirt stores an updated guest CPU
in domain's live definition and there's no need to update it every time
we want to format the definition. The commit itself tried to address
this in qemuDomainFormatXML, but forgot to fix qemuDomainDefFormatLive.
Not to mention that masking a previously set flag is only acceptable if
the flag was set by a public API user. Internally, libvirt should have
never set the flag in the first place.

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

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c