[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/4] x86/pv-shim: don't even allow enabling GRANT_TABLE
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Wed, 1 Mar 2023 15:15:38 +0100
- 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
- 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=728/hgui0RaEJae0P1LzRmUwVm9vJUkWwKZhGA9zlK8=; b=Tfkn3BG7i2zCXHShr3mKkvET5aWIBRpQ2kV735TrD0SbY+FZRNNG5h4BGdaHLUF04PEVSJIeZzGuzFmVi4VqQVn+samnz96IhMYkapBiGFaRGrl371GCLNKxI2zGnvJWeOY6EhHMSGKrucP07tcTLNzhzAVYHNXX9QSZ/6u8dqsCSDLQRXRwO2LiS3pypqOE4D4RfjXoiYkS+1fOZgaeo66cuoeKd7+zgnkW4i4Kax4CxroIKryZfLyR32Y3b9Hbd+Un5dades30nUz9wCfqaw3xDSm0y1mvozbv6D54ItwdPpkAgNDgoiZtf1JdHqeNRRTowEkWZ+lKSiLou3Mqlg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bWCiyNmQ9iS6K07kyD3IwUjZxxuAhYUUtk8ofF1N1T/qfZBzLGVCdy8qWiKaAV6+QgxDZYh+cElOXI36MwvwnFN3VbNpzygeqOJKSx8574MgTTyU3NELaEaQNl05LIOAHrtNcHvcTuOU6AESvgOyGK5/dOU6pFYcMfU5heakuBupehPm1Iz8o5zwYxogyjTp/EXZfWO94TdGpqEezywIKx8C/WpQ/EkfOzX8kP9wBVDiENo+JPwijOrArvojdwSqtmZtdLydUhNmhMan7Ojhc2XdWsmpHa0h8grpv9F+A+Vg3kmpCqvIq3xXknjkBFLL/7hCqO4SRhGwG5x7VlbDOw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Wed, 01 Mar 2023 14:15:44 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Grant table code is unused in shim mode, so there's no point in
building it in the first place for shim-exclusive mode.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
v2: Use UNCONSTRAINED.
--- a/xen/arch/x86/configs/pvshim_defconfig
+++ b/xen/arch/x86/configs/pvshim_defconfig
@@ -9,7 +9,6 @@ CONFIG_EXPERT=y
# Disable features not used by the PV shim
# CONFIG_XEN_SHSTK is not set
# CONFIG_XEN_IBT is not set
-# CONFIG_GRANT_TABLE is not set
# CONFIG_HYPFS is not set
# CONFIG_BIGMEM is not set
# CONFIG_KEXEC is not set
--- a/xen/common/Kconfig
+++ b/xen/common/Kconfig
@@ -15,6 +15,7 @@ config CORE_PARKING
config GRANT_TABLE
bool "Grant table support" if EXPERT
default y
+ depends on UNCONSTRAINED
---help---
Grant table provides a generic mechanism to memory sharing
between domains. This shared memory interface underpins the
|