Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O13ME-0000rk-BE for qemu-devel@nongnu.org; Sun, 11 Apr 2010 16:02:14 -0400 Received: from [140.186.70.92] (port=50874 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O13MC-0000mj-21 for qemu-devel@nongnu.org; Sun, 11 Apr 2010 16:02:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O13Es-0008RF-Ij for qemu-devel@nongnu.org; Sun, 11 Apr 2010 15:54:39 -0400 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:4465 helo=TX2EHSOBE008.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O13Es-0008R2-FX for qemu-devel@nongnu.org; Sun, 11 Apr 2010 15:54:38 -0400 From: Andre Przywara Date: Sun, 11 Apr 2010 21:21:02 +0200 Message-ID: <1271013662-7640-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH][STABLE] fix CPUID vendor override List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aurelien@aurel32.net Cc: Andre Przywara , qemu-devel@nongnu.org, avi@redhat.com 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. Signed-off-by: Andre Przywara --- target-i386/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) I will send a refactoring patch including this fix for git HEAD later. Regards, Andre. diff --git a/target-i386/helper.c b/target-i386/helper.c index 9d7fec3..c17adc1 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1655,7 +1655,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.4