]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Parse unavailable features for CPU models
authorJiri Denemark <jdenemar@redhat.com>
Wed, 20 Sep 2017 08:45:49 +0000 (10:45 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 16 Oct 2017 07:21:52 +0000 (09:21 +0200)
commite9f8e1b8e6089f4c44c817559d3e88a68176525a
treef433e6585ab1f6e5763ac4e9fd3a2489fb8ec81e
parent1255fa877ae38f2c5d94ab516a89bacbb0f5433b
qemu: Parse unavailable features for CPU models

query-cpu-definitions QMP command returns a list of unavailable features
which prevent CPU models from being usable on the current host. So far
we only checked whether the list was empty to mark CPU models as
(un)usable. This patch parses all unavailable features for each CPU
model and stores them in virDomainCapsCPUModel as a list of usability
blockers.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml