]> xenbits.xensource.com Git - libvirt.git/commit
cpu: Use virDomainCapsCPUModelsPtr in cpu driver APIs
authorJiri Denemark <jdenemar@redhat.com>
Fri, 22 Sep 2017 13:51:33 +0000 (15:51 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 16 Oct 2017 07:21:52 +0000 (09:21 +0200)
commitfd885a06a0a753cd7da2d16e539de27a45f374d4
tree205865526c7cc4abc615baadfe9c184ff470d1af
parente9f8e1b8e6089f4c44c817559d3e88a68176525a
cpu: Use virDomainCapsCPUModelsPtr in cpu driver APIs

All APIs which expect a list of CPU models supported by hypervisors were
switched from char **models and int models to just accept a pointer to
virDomainCapsCPUModels object stored in domain capabilities. This avoids
the need to transform virDomainCapsCPUModelsPtr into a NULL-terminated
list of model names and also allows the various cpu driver APIs to
access additional details (such as its usability) about each CPU model.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
13 files changed:
src/cpu/cpu.c
src/cpu/cpu.h
src/cpu/cpu_arm.c
src/cpu/cpu_ppc64.c
src/cpu/cpu_x86.c
src/libxl/libxl_capabilities.c
src/libxl/libxl_driver.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
src/test/test_driver.c
tests/cputest.c