From: Joerg Roedel Subject: [PATCH 1/3] qemu-kvm: fix cpuid bitmask in kvm_setup_cpuid() Date: Wed, 17 Jun 2009 19:56:40 +0200 Message-ID: <1245261402-26440-2-git-send-email-joerg.roedel@amd.com> References: <1245261402-26440-1-git-send-email-joerg.roedel@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: kvm@vger.kernel.org, Joerg Roedel To: Avi Kivity Return-path: Received: from sg2ehsobe004.messaging.microsoft.com ([207.46.51.78]:10581 "EHLO SG2EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754629AbZFQR5A (ORCPT ); Wed, 17 Jun 2009 13:57:00 -0400 In-Reply-To: <1245261402-26440-1-git-send-email-joerg.roedel@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: Fix the bitmask in kvm_setup_cpuid() to a value which represents only the common bits between cpuid function 0x00000001 and 0x80000001. Signed-off-by: Joerg Roedel --- target-i386/libkvm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/libkvm.c b/target-i386/libkvm.c index 0f4e009..6391caf 100644 --- a/target-i386/libkvm.c +++ b/target-i386/libkvm.c @@ -644,7 +644,7 @@ uint32_t kvm_get_supported_cpuid(kvm_context_t kvm, uint32_t function, int reg) */ if (function == 0x80000001) { cpuid_1_edx = kvm_get_supported_cpuid(kvm, 1, R_EDX); - ret |= cpuid_1_edx & 0xdfeff7ff; + ret |= cpuid_1_edx & 0x0183f3ff; } break; } -- 1.6.3.1