]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Avoid reporting "host" as a supported CPU model
authorJiri Denemark <jdenemar@redhat.com>
Sun, 20 Nov 2016 22:21:19 +0000 (23:21 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 25 Nov 2016 19:59:19 +0000 (20:59 +0100)
commit73411a7ff1e4102960b2c09ed604933b104c53dc
tree31bdfd46b383b5a6197e5cba7839f2f619ef4a3a
parent451dc193538fc33bbf4a0f29b946d20ebcd8717a
qemu: Avoid reporting "host" as a supported CPU model

"host" CPU model is supported by a special host-passthrough CPU mode and
users is not allowed to specify this model directly with custom mode.
Thus we should not advertise "host" CPU model in domain capabilities.
This worked well on architectures for which libvirt provides a list of
supported CPU models in cpu_map.xml (since "host" is not in the list).
But we need to explicitly filter "host" model out for all other
architectures.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/domain_capabilities.c
src/conf/domain_capabilities.h
src/qemu/qemu_capabilities.c
tests/domaincapsschemadata/qemu_2.6.0-gicv2-virt.aarch64.xml
tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml