[libvirt] [PATCH v2 25/31] qemu: Avoid reporting "host" as a supported CPU model
Pavel Hrdina
phrdina at redhat.com
Thu Nov 24 18:15:30 UTC 2016
On Mon, Nov 21, 2016 at 12:21:21AM +0100, Jiri Denemark wrote:
> "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 at redhat.com>
> ---
> src/conf/domain_capabilities.c | 6 +++++-
> src/conf/domain_capabilities.h | 3 ++-
> src/qemu/qemu_capabilities.c | 4 +++-
> tests/domaincapsschemadata/qemu_2.6.0-gicv2-virt.aarch64.xml | 1 -
> tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml | 1 -
> 5 files changed, 10 insertions(+), 5 deletions(-)
ACK
Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161124/8a9d0cf1/attachment-0001.sig>
More information about the libvir-list
mailing list