« Previous | Next » 

Revision 12869995

ID12869995ea4f436ab76af5059fd2e9ae83c6cf9d

Added by Eduardo Habkost over 11 years ago

target-i386: kvm_cpu_fill_host: use GET_SUPPORTED_CPUID

Change the kvm_cpu_fill_host() function to use
kvm_arch_get_supported_cpuid() instead of running the CPUID instruction
directly, when checking for supported CPUID features.

This should solve two problems at the same time:

  • "-cpu host" was not enabling features that don't need support on
    the host CPU (e.g. x2apic);
  • "check" and "enforce" options were not detecting problems when the
    host CPU did support a feature, but the KVM kernel code didn't
    support it.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Marcelo Tosatti <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences