Received: from [140.186.70.92] (port=40272 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFLHA-0004pq-Hy for qemu-devel@nongnu.org; Fri, 21 May 2010 02:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFLH8-00038e-Uo for qemu-devel@nongnu.org; Fri, 21 May 2010 02:00:04 -0400 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:51125 helo=TX2EHSOBE008.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFLH8-000377-Ih for qemu-devel@nongnu.org; Fri, 21 May 2010 02:00:02 -0400 From: Andre Przywara Date: Fri, 21 May 2010 07:58:13 +0200 Message-ID: <1274421493-9036-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] resent: fix CPUID vendor override List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: Andre Przywara , qemu-devel@nongnu.org, aurelien@aurel32.net 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 semantic is now as intended: - With TCG, the guest always sees the configured vendor. - With KVM, the default is to propagate the host's vendor - when explicitly requested via -cpu ,vendor=xxx obey this and use the specified vendor Signed-off-by: Andre Przywara --- target-i386/cpuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Hi, this hasn't been picked up the last time I sent it out, are there any objections? Regards, Andre. diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 56938e2..99d1f44 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -962,7 +962,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