From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4c4y-0003lm-LS for qemu-devel@nongnu.org; Tue, 18 Dec 2007 08:01:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4c4v-0003kO-0P for qemu-devel@nongnu.org; Tue, 18 Dec 2007 08:01:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4c4u-0003kH-Kg for qemu-devel@nongnu.org; Tue, 18 Dec 2007 08:01:44 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4c4t-0006h1-VL for qemu-devel@nongnu.org; Tue, 18 Dec 2007 08:01:44 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=chrom.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) id 1J4c4s-0005zB-Gw for qemu-devel@nongnu.org; Tue, 18 Dec 2007 14:01:42 +0100 Received: from kauer by chrom.inf.tu-dresden.de with local (Exim 4.68) (envelope-from ) id 1J4c52-00036c-Ry for qemu-devel@nongnu.org; Tue, 18 Dec 2007 14:01:52 +0100 Date: Tue, 18 Dec 2007 14:01:52 +0100 From: Bernhard Kauer Message-ID: <20071218130152.GB3301@chrom.inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] SVM enabled processor should provide cpuid Fn8000_000A 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 --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline An SVM enabled processor should provide the CPUID extended leaf Fn8000_000A (see AMD documentation #25481). The attached patch add this feature. Bernhard Kauer --oC1+HKm2/end4ao3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="qemu_cpuid.diff" Index: target-i386/helper.c =================================================================== RCS file: /sources/qemu/qemu/target-i386/helper.c,v retrieving revision 1.97 diff -u -r1.97 helper.c --- target-i386/helper.c 9 Dec 2007 23:39:22 -0000 1.97 +++ target-i386/helper.c 18 Dec 2007 12:40:06 -0000 @@ -1751,6 +1819,12 @@ ECX = 0; EDX = 0; break; + case 0x8000000A: + EAX = 0x00000001; + EBX = 0; + ECX = 0; + EDX = 0; + break; default: /* reserved values: zero */ EAX = 0; Index: target-i386/helper2.c =================================================================== RCS file: /sources/qemu/qemu/target-i386/helper2.c,v retrieving revision 1.60 diff -u -r1.60 helper2.c --- target-i386/helper2.c 9 Dec 2007 02:43:19 -0000 1.60 +++ target-i386/helper2.c 18 Dec 2007 12:40:06 -0000 @@ -150,7 +150,7 @@ .ext2_features = (PPRO_FEATURES & 0x0183F3FF) | CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX, .ext3_features = CPUID_EXT3_SVM, - .xlevel = 0x80000008, + .xlevel = 0x8000000A, }, #endif { --oC1+HKm2/end4ao3--