From nobody Mon Feb 9 09:07:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1570779328; cv=none; d=zoho.com; s=zohoarc; b=IRGYlLEURpu++tMOoAil3mrTD+fvx1QjmkIwNt/q0EfqtZAKdfdkLipk6EQv8aC6qxqGn0w8Yxzyv4n8nqFQLjllCtMVk7uqLli+2uYD3fr2aOY/ANGdpsgCv5NpkNnqSJvTnTJ78KoejC3l3oO28iL7Setqr8GHBENaP/j3bAs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570779328; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=WMPWoBKSclavDEn2qH7b2LseFzC1z8eAeQuU6jVyPas=; b=VUdJ4S+5Fpyp9TImfdzYVOmlC7wTnN5/9xEOGG3AFoy94zyLhh3oz/q9ZHtn0Jd3sY7chrg2J8+w9wTc6SrLgD3l6l/B6cPt385fE8UzPe8Ad9p/naLxvXyhA0iYkVHiUlSmIwyh6rMf46H5uCYrQs6d+hgF1sjD36+fyolertc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1570779328251729.1256749278301; Fri, 11 Oct 2019 00:35:28 -0700 (PDT) Received: from localhost ([::1]:46584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIpSR-0003Kk-6I for importer@patchew.org; Fri, 11 Oct 2019 03:35:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34281) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIpQq-0002KR-Is for qemu-devel@nongnu.org; Fri, 11 Oct 2019 03:33:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIpQo-00085N-Le for qemu-devel@nongnu.org; Fri, 11 Oct 2019 03:33:47 -0400 Received: from mga04.intel.com ([192.55.52.120]:5470) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iIpQo-00080g-EC for qemu-devel@nongnu.org; Fri, 11 Oct 2019 03:33:46 -0400 Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2019 00:33:40 -0700 Received: from lxy-clx-4s.sh.intel.com ([10.239.43.57]) by orsmga007.jf.intel.com with ESMTP; 11 Oct 2019 00:33:38 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,283,1566889200"; d="scan'208";a="184683958" From: Xiaoyao Li To: Paolo Bonzini , Richard Henderson , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH] target/i386: Remove MPX support on Snowridge CPU model Date: Fri, 11 Oct 2019 15:18:44 +0800 Message-Id: <20191011071844.108924-1-xiaoyao.li@intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.120 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" MPX support is being phased out by Intel. Following other CPU models like Skylake, Icelake and Cascadelake, do not enable it by default. Signed-off-by: Xiaoyao Li --- I'm not sure is there anyone already use Snowridge CPU model and whether to add it in pc_compat_4_1, since Snowridge has not been released yet. --- hw/i386/pc.c | 4 +++- target/i386/cpu.c | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index bcda50efcc23..97eb7ac32588 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -105,7 +105,9 @@ struct hpet_fw_config hpet_cfg =3D {.count =3D UINT8_MA= X}; /* Physical Address of PVH entry point read from kernel ELF NOTE */ static size_t pvh_start_addr; =20 -GlobalProperty pc_compat_4_1[] =3D {}; +GlobalProperty pc_compat_4_1[] =3D { + { "Snowridge" "-" TYPE_X86_CPU, "mpx", "on" }, +}; const size_t pc_compat_4_1_len =3D G_N_ELEMENTS(pc_compat_4_1); =20 GlobalProperty pc_compat_4_0[] =3D {}; diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 44f1bbdcac76..885bea76205d 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -2762,7 +2762,6 @@ static X86CPUDefinition builtin_x86_defs[] =3D { CPUID_7_0_EBX_FSGSBASE | CPUID_7_0_EBX_SMEP | CPUID_7_0_EBX_ERMS | - CPUID_7_0_EBX_MPX | /* missing bits 13, 15 */ CPUID_7_0_EBX_RDSEED | CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_CLFLUSHOPT | CPUID_7_0_EBX_CLWB | --=20 2.19.1