From nobody Thu May 2 18:51:45 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=fail (BodyHash is different from the expected one) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1564580743689788.2656523315559; Wed, 31 Jul 2019 06:45:43 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hsouG-0005jx-4E; Wed, 31 Jul 2019 13:44:40 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hsouE-0005jR-L3 for xen-devel@lists.xenproject.org; Wed, 31 Jul 2019 13:44:38 +0000 Received: from m4a0040g.houston.softwaregrp.com (unknown [15.124.2.86]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 5485a4b8-b399-11e9-8980-bc764e045a96; Wed, 31 Jul 2019 13:44:37 +0000 (UTC) Received: FROM m4a0040g.houston.softwaregrp.com (15.120.17.147) BY m4a0040g.houston.softwaregrp.com WITH ESMTP; Wed, 31 Jul 2019 13:44:31 +0000 Received: from M9W0067.microfocus.com (2002:f79:be::f79:be) by M4W0335.microfocus.com (2002:f78:1193::f78:1193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 31 Jul 2019 13:32:33 +0000 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (15.124.72.11) by M9W0067.microfocus.com (15.121.0.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Wed, 31 Jul 2019 13:32:33 +0000 Received: from BY5PR18MB3170.namprd18.prod.outlook.com (10.255.137.144) by BY5PR18MB3266.namprd18.prod.outlook.com (10.255.163.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.14; Wed, 31 Jul 2019 13:32:32 +0000 Received: from BY5PR18MB3170.namprd18.prod.outlook.com ([fe80::ad30:31ad:5576:bb56]) by BY5PR18MB3170.namprd18.prod.outlook.com ([fe80::ad30:31ad:5576:bb56%7]) with mapi id 15.20.2136.010; Wed, 31 Jul 2019 13:32:32 +0000 X-Inumbo-ID: 5485a4b8-b399-11e9-8980-bc764e045a96 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gBYnbNiqogGt2GU8KGdNu5nRnal27LXu1Khbup217efgRqFMyrZ3VIx1IQuGgdc6cP0nHBIXGcHBMq+D9vQm3+7m1d5tvRf8qnYwL2cjlpGus1bDX9p1w3NXKGSz0DwhL1TQv8pqxxF0NLrFmIJmtRm43DHLrrdVo3Tp4BqQl+oT44ScTLSIvroSF2IB5FMHUdHFyBH8g9gyLYT10e543HFnpRgogryn1PDTLzz3pchMqIA3G1GbbOdmztjDW7v2lqD3hD9MPWTiNmHoGwAvVJyG7o1l+xvECKpMH/e1+I2XR3kg4y1+M2w7Q/VfYETLnWjMbWyTjsYB3sQQe67B9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7/xSTADiD07/l/fosXubD9Scd+qOTl7yjuMAGXPREaU=; b=GBNQ9j00vZ22dK3j7Bv+JRguPbexlsIx/qO9FJrB0t6wUijhxUo0qW7e5EjIvnE4gnZYq63+B/RHSMvbXxdh42Trw2kRZnEivXaofmjNXqEWO3nzBMafbJAfRwRa+Q+0emYjX9095C294tFAl4kYK9zr3fQwcVS/Q49PAvHoBsSGOZR5FfBVSxPQMxDqHI4a9xbtiaG/zAwwdvVc6+aqsw4j7fK+MRHwMmYrGcYpNQmbfIxPhgkTe+Afvg6bbtcgWVFhxhqdUTr4c56Hwsso84Abaq3Aj7o1yd7ejLqxAnxCT0vvkN8M7AXx5WNvxpVyWNJ6NrKpaT0hbDkJF6f4Yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none From: Jin Nan Wang To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH] Speculative mitigation facilities report wrong status V4 Thread-Index: AQHVR6RnpQWKZDonvE6LwiC0SdZMpQ== Date: Wed, 31 Jul 2019 13:32:32 +0000 Message-ID: <20190731133214.22790-1-jnwang@suse.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR03CA0097.apcprd03.prod.outlook.com (2603:1096:4:7c::25) To BY5PR18MB3170.namprd18.prod.outlook.com (2603:10b6:a03:1a9::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jnwang@suse.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.22.0 x-originating-ip: [45.122.156.254] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5ef7e1a1-4772-4848-f7a2-08d715bb8a52 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BY5PR18MB3266; x-ms-traffictypediagnostic: BY5PR18MB3266: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:214; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(376002)(346002)(39860400002)(396003)(366004)(136003)(199004)(189003)(2906002)(6512007)(14454004)(4326008)(476003)(2616005)(3846002)(6116002)(25786009)(86362001)(66446008)(66476007)(64756008)(107886003)(68736007)(66556008)(386003)(36756003)(478600001)(486006)(2501003)(66946007)(6506007)(50226002)(316002)(1076003)(6436002)(5640700003)(6486002)(26005)(66066001)(54906003)(99286004)(305945005)(8936002)(5660300002)(256004)(81166006)(7736002)(6916009)(71200400001)(71190400001)(186003)(8676002)(2351001)(53936002)(52116002)(102836004)(81156014); DIR:OUT; SFP:1102; SCL:1; SRVR:BY5PR18MB3266; H:BY5PR18MB3170.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; received-spf: None (protection.outlook.com: suse.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: IE37Y86bHQGMZNhatgis9UELfT0P1IXDUVDh/Q+OjVVji1GQUAG2/gV1/24K4gkaBVfwbi4jQITb2SsV6vQ5xQmdoJWwgul5lJ6lO3G6R8BFx3FYlb6CuedGvbwUmkr6YW1KJdHSABK0VezR8xfmttirnoStQWwRC3GFiDBZXp9rgZP0e2aaS9E00q4aIAMy+UtP85L0dtyK7XnEkxAaSIOYz2LfqyqLTrstmrwP+esTGQv7ZtN98Y1Yrxg+oXIRs1gBc0s3ISYiGVsi4X8KrpxttR54Fcp8qRlcZ7hNm3oGInsbSAzIAs7kzt0PQQsjVjMV3em6716t93Fsnt5zZm8X4sz7OgjhUMO4p+CJ0oB/VMTPCI1QfD7AhDCBE3MenQ4igdteeGK+55NcENOKKl1Gcbj8QpDlTJiynnDQrZE= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5ef7e1a1-4772-4848-f7a2-08d715bb8a52 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 13:32:32.2254 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jnwang@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR18MB3266 X-OriginatorOrg: suse.com Subject: [Xen-devel] [PATCH] Speculative mitigation facilities report wrong status V4 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: "andrew.cooper3@citrix.com" , Jin Nan Wang , "wl@xen.org" , Jan Beulich , "roger.pau@citrix.com" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Booting with spec-ctrl=3D0 results in Xen printing "None MD_CLEAR". (XEN) Support for HVM VMs: None MD_CLEAR (XEN) Support for PV VMs: None MD_CLEAR Add a check about X86_FEATURE_MD_CLEAR to avoid to print "None". Signed-off-by: James Wang --- xen/arch/x86/spec_ctrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c index cada9a058e..468a847598 100644 --- a/xen/arch/x86/spec_ctrl.c +++ b/xen/arch/x86/spec_ctrl.c @@ -366,6 +366,7 @@ static void __init print_details(enum ind_thunk thunk, = uint64_t caps) printk(" Support for HVM VMs:%s%s%s%s%s\n", (boot_cpu_has(X86_FEATURE_SC_MSR_HVM) || boot_cpu_has(X86_FEATURE_SC_RSB_HVM) || + boot_cpu_has(X86_FEATURE_MD_CLEAR) || opt_eager_fpu) ? "" : = " None", boot_cpu_has(X86_FEATURE_SC_MSR_HVM) ? " MSR_SPEC_CTRL" : = "", boot_cpu_has(X86_FEATURE_SC_RSB_HVM) ? " RSB" : = "", @@ -377,6 +378,7 @@ static void __init print_details(enum ind_thunk thunk, = uint64_t caps) printk(" Support for PV VMs:%s%s%s%s%s\n", (boot_cpu_has(X86_FEATURE_SC_MSR_PV) || boot_cpu_has(X86_FEATURE_SC_RSB_PV) || + boot_cpu_has(X86_FEATURE_MD_CLEAR) || opt_eager_fpu) ? "" : = " None", boot_cpu_has(X86_FEATURE_SC_MSR_PV) ? " MSR_SPEC_CTRL" : = "", boot_cpu_has(X86_FEATURE_SC_RSB_PV) ? " RSB" : = "", --=20 2.22.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel