From nobody Fri May 3 06:18:08 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; dkim=pass; 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=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1611687827; cv=none; d=zohomail.com; s=zohoarc; b=G62bJsq+fTCmYKfFBo8Wp35+5wCdMtkoif14dnZ6JHdym1DxKljPDBz49uZnRmKz+NRBscLvzJ4xRnJG1GAxM4nEDl7FVVkYaWzdoF75EFSTMpKFGab+fCD+WrBQWDcb+I1QdA+joOBUmIpKitCM0QECvVqC5wjy0imZVQ5DvM4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611687827; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=qGbfcZYHLE1n+o4mj6TwZ+SNn8oUFzIW94PirnDjkfI=; b=AMxUBvN7/rxNRaKWl7zl6eU6EQ5GTPXHFgE3QdKG8YBayUylhSMzedR4ylz0Dio99vh7yYKy9l5vugUYYnKDkN/bd0Y+rleIuDi69YSbfGnSjg2Jh4o8jDVmZlsHZCGRuwcWX0gUxukfUixdhWr5Vf3DQirY5y/+w9xnDFabODY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass 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 1611687827672460.85235355644113; Tue, 26 Jan 2021 11:03:47 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.75440.135852 (Exim 4.92) (envelope-from ) id 1l4Tci-0004oR-Q3; Tue, 26 Jan 2021 19:03:32 +0000 Received: by outflank-mailman (output) from mailman id 75440.135852; Tue, 26 Jan 2021 19:03:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l4Tci-0004o3-Hl; Tue, 26 Jan 2021 19:03:32 +0000 Received: by outflank-mailman (input) for mailman id 75440; Tue, 26 Jan 2021 19:03:31 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l4Tch-0004m8-Re for xen-devel@lists.xenproject.org; Tue, 26 Jan 2021 19:03:31 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6821c3c4-c8fd-498a-b837-3d016e3ec41b; Tue, 26 Jan 2021 19:03:29 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 05D84206CC; Tue, 26 Jan 2021 19:03:28 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 6821c3c4-c8fd-498a-b837-3d016e3ec41b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611687809; bh=pXGVoUrbLMWKnQZdf4MGm9t6buSHMvzEiBn/WpMXRgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RwKqzJqDNdt4gt4nfcEn4eK0U+C11NpIk0gsCCQlV3FDXippf/nFNbbWQXBu4f/SO 3TjElyhZ5OfOd3WM3J2y0U/T77h0/8I1ZSsRnGuKGdtyElTAQ46SWCsZKwHHNThCXc PzYGt64i3rfl5J3bMp5KQnLANsps/2YdgGVjwfAwBJ7qAvC21Ua8eHzqclH8DfaQLp kmC8Y5q7e9+hqbFPpyRDo9Oh+zrvQA0S4RARfd4SfTklU+dhXmVycPiwON1/vIm0U8 tYpxgNOIMNKYcVZchucHSDleZcWYbrzg+QWFPmVxcMzjK6vfUJkdS8LuhN9BQ8QiHD 32cBXV90UBMdw== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, andrew.cooper3@citrix.com, george.dunlap@citrix.com, iwj@xenproject.org, jbeulich@suse.com, julien@xen.org, wl@xen.org, Stefano Stabellini Subject: [PATCH v5 1/2] xen: EXPERT clean-up and introduce UNSUPPORTED Date: Tue, 26 Jan 2021 11:03:27 -0800 Message-Id: <20210126190328.2461-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ZohoMail-DKIM: pass (identity @kernel.org) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini A recent thread [1] has exposed a couple of issues with our current way of handling EXPERT. 1) It is not obvious that "Configure standard Xen features (expert users)" is actually the famous EXPERT we keep talking about on xen-devel 2) It is not obvious when we need to enable EXPERT to get a specific feature In particular if you want to enable ACPI support so that you can boot Xen on an ACPI platform, you have to enable EXPERT first. But searching through the kconfig menu it is really not clear (type '/' and "ACPI"): nothing in the description tells you that you need to enable EXPERT to get the option. So this patch makes things easier by doing two things: - introduce a new kconfig option UNSUPPORTED which is clearly to enable UNSUPPORTED features as defined by SUPPORT.md - change EXPERT options to UNSUPPORTED where it makes sense: keep depending on EXPERT for features made for experts - tag unsupported features by adding (UNSUPPORTED) to the one-line description - clarify the EXPERT one-line description [1] https://marc.info/?l=3Dxen-devel&m=3D160333101228981 Signed-off-by: Stefano Stabellini Reviewed-by: Jan Beulich [x86,common] Reviewed-by: Bertrand Marquis CC: andrew.cooper3@citrix.com CC: george.dunlap@citrix.com CC: iwj@xenproject.org CC: jbeulich@suse.com CC: julien@xen.org CC: wl@xen.org --- Changes in v5: - add reviwed-by - remove changes to ARM_SSBD and HARDEN_BRANCH_PREDICTOR Changes in v4: - clarify support statement of UNSUPPORTED - move UNSUPPORTED past EXPERT - add default EXPERT to UNSUPPORTED Changes in v3: - improve UNSUPPORTED text description - avoid changing XEN_SHSTK and EFI_SET_VIRTUAL_ADDRESS_MAP - update HVM_FEP to be UNSUPPORTED Changes in v2: - introduce UNSUPPORTED - don't switch all EXPERT options to UNSUPPORTED See as reference the v2 thread here: https://marc.info/?l=3Dxen-devel&m=3D160566066013723 --- xen/Kconfig | 11 ++++++++++- xen/arch/arm/Kconfig | 6 +++--- xen/arch/x86/Kconfig | 6 +++--- xen/common/Kconfig | 2 +- xen/common/sched/Kconfig | 6 +++--- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/xen/Kconfig b/xen/Kconfig index 34c318bfa2..bcbd2758e5 100644 --- a/xen/Kconfig +++ b/xen/Kconfig @@ -35,7 +35,7 @@ config DEFCONFIG_LIST default ARCH_DEFCONFIG =20 config EXPERT - bool "Configure standard Xen features (expert users)" + bool "Configure EXPERT features" help This option allows certain base Xen options and settings to be disabled or tweaked. This is for specialized environments @@ -45,6 +45,15 @@ config EXPERT supported. default n =20 +config UNSUPPORTED + bool "Configure UNSUPPORTED features" + default EXPERT + help + This option allows certain unsupported Xen options to be changed, + which includes non-security-supported, experimental, and tech + preview features as defined by SUPPORT.md. (Note that if an option + doesn't depend on UNSUPPORTED it doesn't imply that is supported.) + config LTO bool "Link Time Optimisation" depends on BROKEN diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index c3eb13ea73..330bbf6232 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -32,7 +32,7 @@ menu "Architecture Features" source "arch/Kconfig" =20 config ACPI - bool "ACPI (Advanced Configuration and Power Interface) Support" if EXPERT + bool "ACPI (Advanced Configuration and Power Interface) Support (UNSUPPOR= TED)" if UNSUPPORTED depends on ARM_64 ---help--- =20 @@ -49,7 +49,7 @@ config GICV3 If unsure, say Y =20 config HAS_ITS - bool "GICv3 ITS MSI controller support" if EXPERT + bool "GICv3 ITS MSI controller support (UNSUPPORTED)" if UNSUPPORT= ED depends on GICV3 && !NEW_VGIC =20 config HVM @@ -104,7 +104,7 @@ config HARDEN_BRANCH_PREDICTOR If unsure, say Y. =20 config TEE - bool "Enable TEE mediators support" if EXPERT + bool "Enable TEE mediators support (UNSUPPORTED)" if UNSUPPORTED default n help This option enables generic TEE mediators support. It allows guests diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index 78f351f94b..302334d3e4 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -147,7 +147,7 @@ config BIGMEM If unsure, say N. =20 config HVM_FEP - bool "HVM Forced Emulation Prefix support" if EXPERT + bool "HVM Forced Emulation Prefix support (UNSUPPORTED)" if UNSUPPORTED default DEBUG depends on HVM ---help--- @@ -166,7 +166,7 @@ config HVM_FEP If unsure, say N. =20 config TBOOT - bool "Xen tboot support" if EXPERT + bool "Xen tboot support (UNSUPPORTED)" if UNSUPPORTED default y if !PV_SHIM_EXCLUSIVE select CRYPTO ---help--- @@ -252,7 +252,7 @@ config HYPERV_GUEST endif =20 config MEM_SHARING - bool "Xen memory sharing support" if EXPERT + bool "Xen memory sharing support (UNSUPPORTED)" if UNSUPPORTED depends on HVM =20 endmenu diff --git a/xen/common/Kconfig b/xen/common/Kconfig index b5c91a1664..39451e8350 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -272,7 +272,7 @@ config LATE_HWDOM If unsure, say N. =20 config ARGO - bool "Argo: hypervisor-mediated interdomain communication" if EXPERT + bool "Argo: hypervisor-mediated interdomain communication (UNSUPPORTED)" = if UNSUPPORTED ---help--- Enables a hypercall for domains to ask the hypervisor to perform data transfer of messages between domains. diff --git a/xen/common/sched/Kconfig b/xen/common/sched/Kconfig index 61231aacaa..94c9e20139 100644 --- a/xen/common/sched/Kconfig +++ b/xen/common/sched/Kconfig @@ -15,7 +15,7 @@ config SCHED_CREDIT2 optimized for lower latency and higher VM density. =20 config SCHED_RTDS - bool "RTDS scheduler support (EXPERIMENTAL)" + bool "RTDS scheduler support (UNSUPPORTED)" if UNSUPPORTED default y ---help--- The RTDS scheduler is a soft and firm real-time scheduler for @@ -23,14 +23,14 @@ config SCHED_RTDS in the cloud, and general low-latency workloads. =20 config SCHED_ARINC653 - bool "ARINC653 scheduler support (EXPERIMENTAL)" + bool "ARINC653 scheduler support (UNSUPPORTED)" if UNSUPPORTED default DEBUG ---help--- The ARINC653 scheduler is a hard real-time scheduler for single cores, targeted for avionics, drones, and medical devices. =20 config SCHED_NULL - bool "Null scheduler support (EXPERIMENTAL)" + bool "Null scheduler support (UNSUPPORTED)" if UNSUPPORTED default y ---help--- The null scheduler is a static, zero overhead scheduler, --=20 2.17.1 From nobody Fri May 3 06:18:08 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; dkim=pass; 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=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1611687824; cv=none; d=zohomail.com; s=zohoarc; b=kN54R33dZ0oj9cRxv5m0spx+ozfKD9rd/sZ7n9GwQNvTbcv5YeXxtdVglfFxh++6G5QfYuA7Lg9c+eS9W4SO+Zg1k9xeFy2vALdweLKI1IzS4hDA76trGZJJ4meX7ozP2ATKEoukIk8gF5LO/2PElIPOQ2P4/0Q7owmeWYLKNVE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611687824; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=c75juDzxIgujZWRrXqcM/59sadviizQ0Nmdzg17RrWc=; b=afOeFS/ONb4a6jjSf+0IkDkOwUsWlqisOzphO0C1Ozsxl6CrPX3lg+T06cqgMmYBk1+o7HoPcz3+gTqgIWQRkHNwIP3IeUs3XLYrc+i24fURUri1OMQSLmBdJsUC1bwi+UdAr67Zt9hkRUeAk5p8YpL8gzcAZDOzcHRff9wuOnI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass 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 1611687824693718.2421209048189; Tue, 26 Jan 2021 11:03:44 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.75439.135845 (Exim 4.92) (envelope-from ) id 1l4Tci-0004ne-Bm; Tue, 26 Jan 2021 19:03:32 +0000 Received: by outflank-mailman (output) from mailman id 75439.135845; Tue, 26 Jan 2021 19:03:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l4Tci-0004nX-8A; Tue, 26 Jan 2021 19:03:32 +0000 Received: by outflank-mailman (input) for mailman id 75439; Tue, 26 Jan 2021 19:03:31 +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 1l4Tch-0004nA-4f for xen-devel@lists.xenproject.org; Tue, 26 Jan 2021 19:03:31 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id b3498e7d-d62f-4a2b-8001-db32feb032b8; Tue, 26 Jan 2021 19:03:30 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 844792228A; Tue, 26 Jan 2021 19:03:29 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b3498e7d-d62f-4a2b-8001-db32feb032b8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611687809; bh=OELfP2+bx90CE63iMtCmIw1eetKsqCDD4U0PIp0tN6M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jLFPSqFfGEX+oiWRGnVUkE0OsNd0JQy4v5E8gQzeEddoutRn8uiJihM/4pOBfyyNy KKbBpAgsV8tYt5Yu4K3yYXN3tOh8LwaHvdwoL8siViai81FHXnyJSRpifrzdFt78DK y61KwYulIUaVh+UtRtHOWl1gUzUal2WRa5AHD0Ube9tF224IYorZxdAaPmsq0OML+Q scvA08AQnI2hZ/u+hQrTJkIRn8KbrCrurjEKxRY09y8gih6AyR0dLBnjQ91YzEtYIB 5TtalElLmx7oYiDh705MEbyNCvMTUHBDvPJJuj/SE+hLCDUNv9Pgj+SC15e//MYl7V /aXECGAeYym+Q== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, andrew.cooper3@citrix.com, george.dunlap@citrix.com, iwj@xenproject.org, jbeulich@suse.com, julien@xen.org, wl@xen.org, Stefano Stabellini Subject: [PATCH v5 2/2] xen: add (EXPERT) to one-line description of XEN_SHSTK Date: Tue, 26 Jan 2021 11:03:28 -0800 Message-Id: <20210126190328.2461-2-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ZohoMail-DKIM: pass (identity @kernel.org) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini Add an "(EXPERT)" tag to the one-line description of Kconfig options that depend on EXPERT. (Not where just the prompt depends on EXPERT.) Today we only have one such option: XEN_SHSTK. Signed-off-by: Stefano Stabellini CC: andrew.cooper3@citrix.com CC: george.dunlap@citrix.com CC: iwj@xenproject.org CC: jbeulich@suse.com CC: julien@xen.org CC: wl@xen.org Acked-by: Jan Beulich --- Changes in v5: - actually, only change one-line description of options that depends on EXPERT (and not just the prompt) Changes in v4: - new patch --- xen/arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index 302334d3e4..3f630b89e8 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -103,7 +103,7 @@ config HVM If unsure, say Y. =20 config XEN_SHSTK - bool "Supervisor Shadow Stacks" + bool "Supervisor Shadow Stacks (EXPERT)" depends on HAS_AS_CET_SS && EXPERT default y ---help--- --=20 2.17.1