From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LU2K3-0005TP-R9 for qemu-devel@nongnu.org; Mon, 02 Feb 2009 12:10:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LU2K3-0005S4-0W for qemu-devel@nongnu.org; Mon, 02 Feb 2009 12:10:59 -0500 Received: from [199.232.76.173] (port=55072 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU2K2-0005Rd-LM for qemu-devel@nongnu.org; Mon, 02 Feb 2009 12:10:58 -0500 Received: from savannah.gnu.org ([199.232.41.3]:39518 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LU2K2-0000pH-Em for qemu-devel@nongnu.org; Mon, 02 Feb 2009 12:10:58 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LU2K2-0002IR-2c for qemu-devel@nongnu.org; Mon, 02 Feb 2009 17:10:58 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LU2K1-0002IF-Qu for qemu-devel@nongnu.org; Mon, 02 Feb 2009 17:10:57 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Mon, 02 Feb 2009 17:10:57 +0000 Subject: [Qemu-devel] [6501] Add phenom CPU descriptor (Alexander Graf) 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 Revision: 6501 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6501 Author: aliguori Date: 2009-02-02 17:10:57 +0000 (Mon, 02 Feb 2009) Log Message: ----------- Add phenom CPU descriptor (Alexander Graf) As part of my ongoing effort to make nested SVM useful, I started working to get VMware ESX run inside KVM. VMware couples itself pretty tightly to the CPUID, so it's a good idea to emulate a machine that officially supports SVM and should thus exploit the powers of nested virtualization. This patch adds a Phenom CPU identifier, that resembles a real-world phenom CPU as closely as possible. Signed-off-by: Alexander Graf Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/target-i386/helper.c Modified: trunk/target-i386/helper.c =================================================================== --- trunk/target-i386/helper.c 2009-02-02 17:10:52 UTC (rev 6500) +++ trunk/target-i386/helper.c 2009-02-02 17:10:57 UTC (rev 6501) @@ -137,6 +137,34 @@ .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, { + .name = "phenom", + .level = 5, + .vendor1 = CPUID_VENDOR_AMD_1, + .vendor2 = CPUID_VENDOR_AMD_2, + .vendor3 = CPUID_VENDOR_AMD_3, + .family = 16, + .model = 2, + .stepping = 3, + /* Missing: CPUID_VME, CPUID_HT */ + .features = PPRO_FEATURES | + CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | + CPUID_PSE36, + /* Missing: CPUID_EXT_CX16, CPUID_EXT_POPCNT */ + .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_MONITOR, + /* Missing: CPUID_EXT2_PDPE1GB, CPUID_EXT2_RDTSCP */ + .ext2_features = (PPRO_FEATURES & 0x0183F3FF) | + CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX | + CPUID_EXT2_3DNOW | CPUID_EXT2_3DNOWEXT | CPUID_EXT2_MMXEXT | + CPUID_EXT2_FFXSR, + /* Missing: CPUID_EXT3_LAHF_LM, CPUID_EXT3_CMP_LEG, CPUID_EXT3_EXTAPIC, + CPUID_EXT3_CR8LEG, CPUID_EXT3_ABM, CPUID_EXT3_SSE4A, + CPUID_EXT3_MISALIGNSSE, CPUID_EXT3_3DNOWPREFETCH, + CPUID_EXT3_OSVW, CPUID_EXT3_IBS */ + .ext3_features = CPUID_EXT3_SVM, + .xlevel = 0x8000001A, + .model_id = "AMD Phenom(tm) 9550 Quad-Core Processor" + }, + { .name = "core2duo", .level = 10, .family = 6,