From patchwork Mon Jan 8 20:50:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Bernat X-Patchwork-Id: 10150587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 901F8601A1 for ; Mon, 8 Jan 2018 20:51:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9755028683 for ; Mon, 8 Jan 2018 20:51:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C1DC28784; Mon, 8 Jan 2018 20:51:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 54BB428683 for ; Mon, 8 Jan 2018 20:51:57 +0000 (UTC) Received: from localhost ([::1]:58143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYeOi-0004wx-4m for patchwork-qemu-devel@patchwork.kernel.org; Mon, 08 Jan 2018 15:51:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYeO1-0004XR-Vn for qemu-devel@nongnu.org; Mon, 08 Jan 2018 15:51:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYeNx-00034W-T5 for qemu-devel@nongnu.org; Mon, 08 Jan 2018 15:51:14 -0500 Received: from bart.luffy.cx ([78.47.78.131]:47427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYeNx-00030q-Cm for qemu-devel@nongnu.org; Mon, 08 Jan 2018 15:51:09 -0500 Received: from bart.luffy.cx (localhost [127.0.0.1]) by bart.luffy.cx (Postfix) with ESMTP id 818021534D; Mon, 8 Jan 2018 21:51:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bernat.im; h=from:to:cc :subject:date:message-id; s=postfix; bh=jt1DLtmzpUc01fYZJdn/jk5i luA=; b=f48qW6MTXcO2Xf5/dEhvRJM79kw0XQd1M8lnz+76u/XAUGhNWKDF38Rd E3oc35CBrdjB2rNchjfVDwTS9yG9wABNYaRY5cuCjRL3B2QDMXFtDmL3AK6HW+rS IXMM0ZefAj9oR1K5J6mVFbaSeSW5Nw1WzbMGICgnsf+e/Kw1+TE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bernat.im; h=from:to:cc :subject:date:message-id; q=dns; s=postfix; b=qzQes6nHfSQwj//oqL X8Ei/5y6HxSY7SyKH7KhAapkIBW2cSJwmUXEKJUJA0eoY/yx4hx1WG1rckueBd+i dQRHDIa+Uym9+1QuKOh8RwnNuYPENcFJ+pTQc4L948c+G6wNGZ3nB5BkJIjuaPDM EdWyb1qyM5K4Mna+JhMnrYHNE= Received: from neo.luffy.cx (184.66.60.188.dynamic.wline.res.cust.swisscom.ch [188.60.66.184]) by bart.luffy.cx (Postfix) with ESMTPS id 54A911534B; Mon, 8 Jan 2018 21:51:04 +0100 (CET) Received: by neo.luffy.cx (Postfix, from userid 500) id 72C001A6A; Mon, 8 Jan 2018 21:51:03 +0100 (CET) From: Vincent Bernat To: Paolo Bonzini , Richard Henderson , Eduardo Habkost , qemu-devel@nongnu.org Date: Mon, 8 Jan 2018 21:50:52 +0100 Message-Id: <20180108205052.24385-1-vincent@bernat.im> X-Mailer: git-send-email 2.15.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 78.47.78.131 Subject: [Qemu-devel] [PATCH] target-i386: add pcid to both Sandy Bridge and Ivy Bridge X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vincent Bernat Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP PCID has been introduced in Sandy Bridge and, currently, KVM doesn't object exposing it to VM as long as it is present on the host. Update CPU model for both Sandy Bridge and Ivy Bridge accordingly. Signed-off-by: Vincent Bernat --- target/i386/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 3818d7283158..bb2b4bd1b4fe 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1109,7 +1109,7 @@ static X86CPUDefinition 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_PCID, .features[FEAT_8000_0001_EDX] = CPUID_EXT2_LM | CPUID_EXT2_RDTSCP | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL, @@ -1140,7 +1140,8 @@ static X86CPUDefinition 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_F16C | CPUID_EXT_RDRAND, + CPUID_EXT_SSE3 | CPUID_EXT_F16C | CPUID_EXT_RDRAND | + CPUID_EXT_PCID, .features[FEAT_7_0_EBX] = CPUID_7_0_EBX_FSGSBASE | CPUID_7_0_EBX_SMEP | CPUID_7_0_EBX_ERMS,