]> xenbits.xensource.com Git - libvirt.git/commit
cpu: Add list of allowed CPU models to virCPUGetHost
authorJiri Denemark <jdenemar@redhat.com>
Tue, 7 Mar 2017 11:20:01 +0000 (12:20 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 13 Mar 2017 22:49:57 +0000 (23:49 +0100)
commit79a78c13ecb837518bbfc2c549884bab09ee8568
treeba7215de33458c685a88ad25150a7d5c6b43a726
parent5677b9b3364b232844d86f6676ebfd3e8f9e3ec0
cpu: Add list of allowed CPU models to virCPUGetHost

When creating host CPU definition usable with a given emulator, the CPU
should not be defined using an unsupported CPU model. The new @models
and @nmodels parameters can be used to limit CPU models which can be
used in the result.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/bhyve/bhyve_capabilities.c
src/cpu/cpu.c
src/cpu/cpu.h
src/cpu/cpu_ppc64.c
src/cpu/cpu_x86.c
src/qemu/qemu_capabilities.c
src/vmware/vmware_conf.c
src/vz/vz_driver.c