]> xenbits.xensource.com Git - libvirt.git/commit
cpu_x86: Disable blockers from unusable CPU models
authorJiri Denemark <jdenemar@redhat.com>
Fri, 13 Oct 2017 16:17:52 +0000 (18:17 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 16 Oct 2017 07:23:20 +0000 (09:23 +0200)
commit9c9620af1d09efdc327c91d4e94e6ff9bc22c556
tree3a3ee0a57c8122a58509057117de2aa05fcaa15e
parent722ef4ff3892395a166517f4289669cb57c33177
cpu_x86: Disable blockers from unusable CPU models

When decoding CPUID data to virCPUDef we need to be careful about using
a CPU model which cannot be directly used on the current host. Normally,
libvirt would notice the features which prevent the model from being
usable and it would disable them in the computed virCPUDef, but this
won't work in case the definition of the CPU model in QEMU contains more
features than what we have in cpu_map.xml. We need to count with the
usability blockers we got from QEMU and explicitly disable all of them
to make the computed virCPUDef usable.

https://bugzilla.redhat.com/show_bug.cgi?id=1464832

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/cpu/cpu_x86.c