]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fix kvm_pv_eoi with kvmclock
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 8 Oct 2012 16:51:57 +0000 (18:51 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 8 Oct 2012 18:13:55 +0000 (20:13 +0200)
commit5d692cc7143084d841de79888fc249040ff40061
tree5ebe8d63ecd3c11f2be17ba97513d3f140ac9c96
parent53d5ad94c04f23ce8e3d5dd3ab7fad6a77f4f589
fix kvm_pv_eoi with kvmclock

When both kvmclock and kvm_pv_eoi are configured (either disabled or
enabled) libvirt will generate invalid CPU specification due to the
fact that even though kvmclock causes the CPU to be specified, it
doesn't set have_cpu flag to true (and the new kvm_pv_eoi as well).
This patch fixes the issue and adds a test exactly for that to show
that it is fixed correctly (and also to keep it that way in the future
of course).
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-kvmclock+eoi-disabled.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-kvmclock+eoi-disabled.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c