]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Update guest CPU in host-* mode
authorJiri Denemark <jdenemar@redhat.com>
Mon, 19 Dec 2011 14:41:16 +0000 (15:41 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Jan 2012 10:42:56 +0000 (11:42 +0100)
commit277bc0dcb82ed9617aa6b8af481a1687da385e4c
tree9f8396a3c211aff163339274879b0ecf5d7ad9fe
parentf7dd3a4e62354b5ef98fab6f77bfaa124903a775
cpu: Update guest CPU in host-* mode

VIR_DOMAIN_XML_UPDATE_CPU flag for virDomainGetXMLDesc may be used to
get updated custom mode guest CPU definition in case it depends on host
CPU. This patch implements the same behavior for host-model and
host-passthrough CPU modes.
13 files changed:
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/cpu/cpu_x86.c
src/libvirt_private.syms
src/qemu/qemu_domain.c
tests/cputest.c
tests/cputestdata/x86-host+host+host-model,models,Penryn-result.xml [new file with mode: 0644]
tests/cputestdata/x86-host+host-model-nofallback.xml [new file with mode: 0644]
tests/cputestdata/x86-host+host-model.xml [new file with mode: 0644]
tests/cputestdata/x86-host+host-passthrough.xml [new file with mode: 0644]
tests/cputestdata/x86-host-model-nofallback.xml [new file with mode: 0644]
tests/cputestdata/x86-host-model.xml [new file with mode: 0644]
tests/cputestdata/x86-host-passthrough.xml [new file with mode: 0644]