From patchwork Sat May 4 08:33:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5pil5aWH?= X-Patchwork-Id: 241436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 87D152C00E3 for ; Sat, 4 May 2013 18:33:45 +1000 (EST) Received: from localhost ([::1]:35354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYXuZ-0004XY-PJ for incoming@patchwork.ozlabs.org; Sat, 04 May 2013 04:33:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYXuG-0004TF-9T for qemu-devel@nongnu.org; Sat, 04 May 2013 04:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYXuD-000805-Ig for qemu-devel@nongnu.org; Sat, 04 May 2013 04:33:23 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:54362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYXuD-000801-BA for qemu-devel@nongnu.org; Sat, 04 May 2013 04:33:21 -0400 Received: by mail-la0-f51.google.com with SMTP id ep20so2133655lab.10 for ; Sat, 04 May 2013 01:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=zqFT1vRLNq3hYSl2vOpIsTLMAWffNGC4OXFib1ddgxI=; b=QtDIDXanFkb0h0KLObztIjlwqZL/7zmE9jzWod/uR4YdD9Hv9BBJYEMQMK6dh03FOP /RE3c0kF4weMvl+P6QligZ25OrXmh43oI+i6f4/SWmNmxwSebYqurnECF1SYxRdielRv +uBV+UZB1AkMx+HEW4c+dWcCOZMkQG8dK4fJ7wCAT+qQyV7F7Wty8WP1OMncIVu3Sfe/ v7rGOn+/HcDI7qh2TuirrhNYCi+ckPAv6kzR5aGbagCRLQyjcVZQYIiB55jpggcWOCKx tfaqSKkD+rmuoi2F4opXVhZqmOz7mP4qsvqmEC1Oe9vjdNgCxIRVqO3y10dUXt10cP9B oNWQ== MIME-Version: 1.0 X-Received: by 10.112.162.40 with SMTP id xx8mr5338823lbb.30.1367656400195; Sat, 04 May 2013 01:33:20 -0700 (PDT) Received: by 10.112.73.67 with HTTP; Sat, 4 May 2013 01:33:19 -0700 (PDT) Date: Sat, 4 May 2013 16:33:19 +0800 Message-ID: From: =?UTF-8?B?5p2O5pil5aWHIDxBcnRodXIgQ2h1bnFpIExpPg==?= To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::233 Cc: Jan Kiszka Subject: [Qemu-devel] [PATCH] Add default VMX flags to Intel CPU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add ext_features of CPUID_EXT_VMX to the following CPUs as default flag (now only core(2)duo with VMX flag by default): kvm64, kvm32, Penryn, Nehalem, Westmere, SandyBridge, Haswell. Other CPUs of AMD and lower versions of Intel CPU without VMX support don't add this feature by default. Signed-off by: Arthur Chunqi Li --- target-i386/cpu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 1.7.9.5 diff --git a/target-i386/cpu.c b/target-i386/cpu.c index e2302d8..7b659f7 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -490,7 +490,7 @@ static x86_def_t builtin_x86_defs[] = { CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | CPUID_PSE36, /* Missing: CPUID_EXT_POPCNT, CPUID_EXT_MONITOR */ - .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_CX16, + .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_CX16 | CPUID_EXT_VMX, /* Missing: CPUID_EXT2_PDPE1GB, CPUID_EXT2_RDTSCP */ .ext2_features = (PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES) | CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX, @@ -522,7 +522,7 @@ static x86_def_t builtin_x86_defs[] = { .stepping = 1, .features = PPRO_FEATURES | CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | CPUID_PSE36, - .ext_features = CPUID_EXT_SSE3, + .ext_features = CPUID_EXT_SSE3 | CPUID_EXT_VMX, .ext2_features = PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES, .ext3_features = 0, .xlevel = 0x80000008, @@ -648,7 +648,7 @@ static x86_def_t builtin_x86_defs[] = { CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC | CPUID_PSE | CPUID_DE | CPUID_FP87, .ext_features = CPUID_EXT_SSE41 | CPUID_EXT_CX16 | CPUID_EXT_SSSE3 | - CPUID_EXT_SSE3, + CPUID_EXT_SSE3 | CPUID_EXT_VMX, .ext2_features = CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL, .ext3_features = CPUID_EXT3_LAHF_LM, .xlevel = 0x8000000A, @@ -667,7 +667,7 @@ static x86_def_t builtin_x86_defs[] = { CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC | CPUID_PSE | CPUID_DE | CPUID_FP87, .ext_features = CPUID_EXT_POPCNT | CPUID_EXT_SSE42 | CPUID_EXT_SSE41 | - CPUID_EXT_CX16 | CPUID_EXT_SSSE3 | CPUID_EXT_SSE3, + CPUID_EXT_CX16 | CPUID_EXT_SSSE3 | CPUID_EXT_SSE3 | CPUID_EXT_VMX, .ext2_features = CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX, .ext3_features = CPUID_EXT3_LAHF_LM, .xlevel = 0x8000000A, @@ -687,7 +687,7 @@ static x86_def_t builtin_x86_defs[] = { CPUID_DE | CPUID_FP87, .ext_features = CPUID_EXT_AES | CPUID_EXT_POPCNT | CPUID_EXT_SSE42 | CPUID_EXT_SSE41 | CPUID_EXT_CX16 | CPUID_EXT_SSSE3 | - CPUID_EXT_PCLMULQDQ | CPUID_EXT_SSE3, + CPUID_EXT_PCLMULQDQ | CPUID_EXT_SSE3 | CPUID_EXT_VMX, .ext2_features = CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX, .ext3_features = CPUID_EXT3_LAHF_LM, .xlevel = 0x8000000A, @@ -709,7 +709,7 @@ static x86_def_t builtin_x86_defs[] = { CPUID_EXT_TSC_DEADLINE_TIMER | CPUID_EXT_POPCNT | CPUID_EXT_X2APIC | CPUID_EXT_SSE42 | CPUID_EXT_SSE41 | CPUID_EXT_CX16 | CPUID_EXT_SSSE3 | CPUID_EXT_PCLMULQDQ | - CPUID_EXT_SSE3, + CPUID_EXT_SSE3 | CPUID_EXT_VMX, .ext2_features = CPUID_EXT2_LM | CPUID_EXT2_RDTSCP | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL, .ext3_features = CPUID_EXT3_LAHF_LM, @@ -733,7 +733,7 @@ static x86_def_t builtin_x86_defs[] = { CPUID_EXT_SSE41 | CPUID_EXT_CX16 | CPUID_EXT_SSSE3 | CPUID_EXT_PCLMULQDQ | CPUID_EXT_SSE3 | CPUID_EXT_TSC_DEADLINE_TIMER | CPUID_EXT_FMA | CPUID_EXT_MOVBE | - CPUID_EXT_PCID, + CPUID_EXT_PCID | CPUID_EXT_VMX, .ext2_features = CPUID_EXT2_LM | CPUID_EXT2_RDTSCP | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL, .ext3_features = CPUID_EXT3_LAHF_LM,