[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/7] fix CPUID vendor override
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [PATCH 2/7] fix CPUID vendor override |
Date: |
Mon, 28 Jun 2010 13:14:09 -0300 |
From: Andre Przywara <address@hidden>
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 <address@hidden>
Signed-off-by: Marcelo Tosatti <address@hidden>
---
target-i386/cpuid.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c
index 6a0f7ca..fe0e6b2 100644
--- a/target-i386/cpuid.c
+++ b/target-i386/cpuid.c
@@ -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);
}
}
--
1.6.6.1
- [Qemu-devel] [PATCH 0/7] [PULL] qemu-kvm.git uq/master queue, Marcelo Tosatti, 2010/06/28
- [Qemu-devel] [PATCH 4/7] Enable XSAVE related CPUID, Marcelo Tosatti, 2010/06/28
- [Qemu-devel] [PATCH 7/7] kvm: Fix cpu_is_bsp() compilation warning, Marcelo Tosatti, 2010/06/28
- [Qemu-devel] [PATCH 6/7] kvm: init mp_state, Marcelo Tosatti, 2010/06/28
- [Qemu-devel] [PATCH 3/7] kvm: Extend kvm_arch_get_supported_cpuid() to support index, Marcelo Tosatti, 2010/06/28
- [Qemu-devel] [PATCH 1/7] kvm: Switch kvm_update_guest_debug to run_on_cpu, Marcelo Tosatti, 2010/06/28
- [Qemu-devel] [PATCH 2/7] fix CPUID vendor override,
Marcelo Tosatti <=
- [Qemu-devel] [PATCH 5/7] kvm: Enable XSAVE live migration support, Marcelo Tosatti, 2010/06/28
- Re: [Qemu-devel] [PATCH 0/7] [PULL] qemu-kvm.git uq/master queue, Anthony Liguori, 2010/06/28