From patchwork Mon Mar 16 09:56:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoyao Li X-Patchwork-Id: 11440097 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A4136CA for ; Mon, 16 Mar 2020 10:28:17 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A89C205ED for ; Mon, 16 Mar 2020 10:28:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A89C205ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:36684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDmyl-0004hY-Vt for patchwork-qemu-devel@patchwork.kernel.org; Mon, 16 Mar 2020 06:28:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50811) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDmZR-0003bq-Qu for qemu-devel@nongnu.org; Mon, 16 Mar 2020 06:02:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDmZP-0001d2-4e for qemu-devel@nongnu.org; Mon, 16 Mar 2020 06:02:05 -0400 Received: from mga17.intel.com ([192.55.52.151]:46378) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDmZO-00018N-EQ for qemu-devel@nongnu.org; Mon, 16 Mar 2020 06:02:02 -0400 IronPort-SDR: RLO4Ze4FAl4ycvx5kj/TxNx3i4/NUGmkdxgHw+T4cKsa1GljZfmBZpF+UEAxMPb5z7pCGHulIp GFX2AFLPy7fA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2020 03:01:52 -0700 IronPort-SDR: JgOmwo0g4HksdkWOCRIEitFm2qR1z0erOZEGSdMO4bWJx/DL0AG+nXOuoqQ7jHjnEQ22sGZpn/ PYodh2E/qsNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,559,1574150400"; d="scan'208";a="267511272" Received: from lxy-dell.sh.intel.com ([10.239.13.109]) by fmsmga004.fm.intel.com with ESMTP; 16 Mar 2020 03:01:52 -0700 From: Xiaoyao Li To: Paolo Bonzini , Richard Henderson , Eduardo Habkost Subject: [PATCH v2] target/i386: Add ARCH_CAPABILITIES related bits into Icelake-Server CPU model Date: Mon, 16 Mar 2020 17:56:05 +0800 Message-Id: <20200316095605.12318-1-xiaoyao.li@intel.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: e90ff880-c395-9013-6855-eaa4be7969be@redhat.com References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 192.55.52.151 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Xiaoyao Li , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Current Icelake-Server CPU model lacks all the features enumerated by MSR_IA32_ARCH_CAPABILITIES. Add them, so that guest of "Icelake-Server" can see all of them. Signed-off-by: Xiaoyao Li --- v2: - Add it as a new version. --- target/i386/cpu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 92fafa265914..5fba6a2ad6b3 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -3496,6 +3496,19 @@ static X86CPUDefinition builtin_x86_defs[] = { { /* end of list */ } }, }, + { + .version = 3, + .props = (PropValue[]) { + { "arch-capabilities", "on" }, + { "rdctl-no", "on" }, + { "ibrs-all", "on" }, + { "skip-l1dfl-vmentry", "on" }, + { "mds-no", "on" }, + { "pschange-mc-no", "on" }, + { "taa-no", "on" }, + { /* end of list */ } + }, + }, { /* end of list */ } } },