From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdlVQ-0005Ne-HC for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdlVL-0005Ix-OG for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:11 -0400 Received: from [199.232.76.173] (port=55342 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdlVK-0005It-RB for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:06 -0400 Received: from va3ehsobe004.messaging.microsoft.com ([216.32.180.14]:42521 helo=VA3EHSOBE004.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MdlVK-0001xL-Gc for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:06 -0400 From: Andre Przywara Date: Wed, 19 Aug 2009 15:42:41 +0200 Message-ID: <1250689362-11067-3-git-send-email-andre.przywara@amd.com> In-Reply-To: <1250689362-11067-1-git-send-email-andre.przywara@amd.com> References: <1250689362-11067-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 2/3] push CPUID level to 4 to allow Intel multicore decoding 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 Intel CPUs store the number of cores in CPUID leaf 4. So push the maxleaf value to 4 to allow the guests access to this leaf. Signed-off-by: Andre Przywara --- target-i386/helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index dd89885..7de4c07 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -119,7 +119,7 @@ static x86_def_t x86_defs[] = { #ifdef TARGET_X86_64 { .name = "qemu64", - .level = 2, + .level = 4, .vendor1 = CPUID_VENDOR_AMD_1, .vendor2 = CPUID_VENDOR_AMD_2, .vendor3 = CPUID_VENDOR_AMD_3, @@ -190,7 +190,7 @@ static x86_def_t x86_defs[] = { #endif { .name = "qemu32", - .level = 2, + .level = 4, .family = 6, .model = 3, .stepping = 3, -- 1.6.1.3