From nobody Wed Apr 24 07:43:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1593426713; cv=none; d=zohomail.com; s=zohoarc; b=e8U7ulEEXpKf8pqPOqMp4LSZYyqnhCZ0LVNUshC5GkPhgXRp4iOdt3JwgRD9f3B4A4RhW2N/Nd5tYE8qCKXQr4OlHwJb3OOkilPVNF0uyE2a3Xo3+vOEddZa+vGOK6jRu0C3YBpRjDuOFIgg50XeVHhWEC2sLOcCJhfB/WVvzCc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593426713; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=KaukQWQ+xVs0rwW4Xiy0hTWNY++pUfLvEIDI1QHa0ss=; b=CAZ6R9wTsKlAdqaxxm5ICsomujkjmFA12g5NPE6MSBl9XBaIyLf+MTzqISTAnSMloqZh9ytCpA7dTXyIVCfmW+W6mJGlB2OV0wUgnQpgVPAw6gYuf9OEADLxyMrIHy2K5BpIubPyT1gT+7K4PRPSX5/MjHKpoMPOvTi5uS1qRz8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1593426713939910.9947460530564; Mon, 29 Jun 2020 03:31:53 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jpr4Y-0008Fx-Nv; Mon, 29 Jun 2020 10:31:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jpr4X-0008Fs-Nh for xen-devel@lists.xenproject.org; Mon, 29 Jun 2020 10:31:33 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id b34dd8e6-b9f3-11ea-854d-12813bfff9fa; Mon, 29 Jun 2020 10:31:33 +0000 (UTC) X-Inumbo-ID: b34dd8e6-b9f3-11ea-854d-12813bfff9fa Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: kCUloU30hnj9oHyFqiiI365g2eomIco5GQ9CRLHeuvAPmCpv65HJlZQthcNXRP2k2l3t2t6fAh sahjJxurJ9MDctR8NuvT78UcnY/dqrliDIfeTGlmrJ7oGEdQQFrH9SyC5lTrX9sEhKz99dyyQj gjAzntWnsh5jaqHRDxEbiPMc9l6f9c9KU1CFfuspNLgXOrcjS8P10qcAJSPMOxR/y3JctZq8ro 3+WNG42GU6UG9NdZjoSpoTReGykUb7LBPL/EK/My/PLblkbM+zMLq+n9v5wZxZbXOnkZ+h9SIG jE0= X-SBRS: 2.7 X-MesageID: 21467703 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.75,294,1589256000"; d="scan'208";a="21467703" From: Andrew Cooper To: Xen-devel Subject: [PATCH] x86/boot: Don't disable PV32 when XEN_SHSTK is compiled out Date: Mon, 29 Jun 2020 11:31:13 +0100 Message-ID: <20200629103113.9328-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Paul Durrant , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" There is no need to automatically disable PV32 support on SHSTK-capable hardware if Xen isn't actually using the feature. Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 CC: Paul Durrant For 4.14. Minor bugfix. --- xen/arch/x86/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 2aa1cd50b8..c9b6af826d 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -95,7 +95,11 @@ unsigned long __initdata highmem_start; size_param("highmem-start", highmem_start); #endif =20 +#ifdef CONFIG_XEN_SHSTK static bool __initdata opt_xen_shstk =3D true; +#else +#define opt_xen_shstk false +#endif =20 static int __init parse_cet(const char *s) { --=20 2.11.0