]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: parse and create -cpu ...,-kvmclock
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2012 13:49:52 +0000 (14:49 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 27 Jan 2012 15:51:50 +0000 (16:51 +0100)
commitb66d1bef14739ab56ed9f430b4c4e5b89ed5ed12
treedebaa4e78c651473d5bb96324aeb19c7ef8a6fb3
parent5a137f3620af4f6fd4a4484c6d79af0748aec85e
qemu: parse and create -cpu ...,-kvmclock

QEMU supports a bunch of CPUID features that are tied to the kvm CPUID
nodes rather than the processor's.  They are "kvmclock",
"kvm_nopiodelay", "kvm_mmu", "kvm_asyncpf".  These are not known to
libvirt and their CPUID leaf might move if (for example) the Hyper-V
extensions are enabled. Hence their handling would anyway require some
special-casing.

However, among these the most useful is kvmclock; an additional
"property" of this feature is that a <timer> element is a better model
than a CPUID feature.  Although, creating part of the -cpu command-line
from something other than the <cpu> XML element introduces some
ugliness.

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
src/qemu/qemu_command.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvdata/qemuxml2argv-cpu-host-kvmclock.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-cpu-host-kvmclock.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-cpu-kvmclock.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-cpu-kvmclock.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-kvmclock.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-kvmclock.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c