From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KyNt6-0003xv-4w for qemu-devel@nongnu.org; Fri, 07 Nov 2008 04:44:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KyNt4-0003w3-DP for qemu-devel@nongnu.org; Fri, 07 Nov 2008 04:44:18 -0500 Received: from [199.232.76.173] (port=36748 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KyNt4-0003vj-89 for qemu-devel@nongnu.org; Fri, 07 Nov 2008 04:44:18 -0500 Received: from mx2.redhat.com ([66.187.237.31]:60999) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KyNt4-0004aF-6q for qemu-devel@nongnu.org; Fri, 07 Nov 2008 04:44:18 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mA79iGXt011542 for ; Fri, 7 Nov 2008 04:44:16 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mA79iG28001683 for ; Fri, 7 Nov 2008 04:44:16 -0500 Received: from zweiblum.travel.kraxel.org (vpn-4-83.str.redhat.com [10.32.4.83]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mA79iF8V013385 for ; Fri, 7 Nov 2008 04:44:15 -0500 Message-ID: <49140DEE.7070000@redhat.com> Date: Fri, 07 Nov 2008 10:44:14 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030000040706010102090804" Subject: [Qemu-devel] [patch] kvm: also fill 0x40000000 (vmm) cpuid leafes. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------030000040706010102090804 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, $subject says all, patch attached. please apply, Gerd --------------030000040706010102090804 Content-Type: text/plain; name="0044-kvm-handle-cpuid-0x40000000.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0044-kvm-handle-cpuid-0x40000000.patch" >>From e95b11a187d6ca344b544a8aef7910c8cbacf297 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 7 Nov 2008 09:35:58 +0100 Subject: [PATCH] kvm: handle cpuid 0x40000000 Signed-off-by: Gerd Hoffmann --- target-i386/kvm.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index f22f30a..1f37a52 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -58,6 +58,20 @@ int kvm_arch_init_vcpu(CPUState *env) c->edx = edx; } + cpu_x86_cpuid(env, 0x40000000, &eax, &ebx, &ecx, &edx); + limit = eax; + + for (i = 0x40000000; i <= limit; i++) { + struct kvm_cpuid_entry *c = &cpuid_data.entries[cpuid_i++]; + + cpu_x86_cpuid(env, i, &eax, &ebx, &ecx, &edx); + c->function = i; + c->eax = eax; + c->ebx = ebx; + c->ecx = ecx; + c->edx = edx; + } + cpu_x86_cpuid(env, 0x80000000, &eax, &ebx, &ecx, &edx); limit = eax; -- 1.5.6.5 --------------030000040706010102090804--