]> Git Repo - qemu.git/commitdiff
fix CPUID vendor override
authorAndre Przywara <[email protected]>
Wed, 2 Jun 2010 09:57:47 +0000 (11:57 +0200)
committerMarcelo Tosatti <[email protected]>
Mon, 28 Jun 2010 16:06:03 +0000 (13:06 -0300)
the meaning of vendor_override is actually the opposite of how it
is currently used :-(
Fix it to allow KVM to export the non-native CPUID vendor if
explicitly requested by the user.

The intended behavior is:
With TCG:
  - always inject the configured vendor (either hard-coded, in config
    files or via ",vendor=" commandline)
With KVM:
  - by default inject the host's vendor
  - if the user specifies ",vendor=" on the commandline, use this
    instead of the host's vendor
  - all pre-configured vendors (hard-coded, config file) are ignored

Signed-off-by: Andre Przywara <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
target-i386/cpuid.c

index 6a0f7ca82ed7b0744e35c67d986cc6becc01aed2..fe0e6b21a8cc564f761fdee75f601c9152709c6e 100644 (file)
@@ -982,7 +982,7 @@ static void get_cpuid_vendor(CPUX86State *env, uint32_t *ebx,
      * this if you want to use KVM's sysenter/syscall emulation
      * in compatibility mode and when doing cross vendor migration
      */
-    if (kvm_enabled() && env->cpuid_vendor_override) {
+    if (kvm_enabled() && env->cpuid_vendor_override) {
         host_cpuid(0, 0, NULL, ebx, ecx, edx);
     }
 }
This page took 0.026575 seconds and 4 git commands to generate.