[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] x86/pv-shim: don't even allow enabling GRANT_TABLE


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 6 Dec 2022 15:30:19 +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=jyu2+YfJV0EpE2YDnKXKJULDV8ySfKA8696Hu52AWbs=; b=jBv6GZAo7RzJJTuGA7ErFjLKixWZVHo4HliMRPVXabl6OaIRswCb9bzJgVjAIZKMKFocFW7fcpow4bcuo2E7CtNB9T+EuCPJOIFfI3oK0IlPnCS1r/JhTjX5pVZ2KXEL3aXaarrAgRPxtaBVsy99R1yF30HuannBlEu0ZKj37A3SkuEzUkgbCgIko0w8S54dKJvGodxcvIej1ucaP3jHfZe2qa1GsOFyD4CQwlwQgYac+KOu3eU9oTxtypjpkSmUv4AnGmgrXllc5nz8qC7y0NQ5oovz+48HbB6l1A3Yrw8iY1lNR1Mc9ipK1iZ9gk+msU8MeJ6dtoDWVDmb3X280A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fzJCu66DFxBies2HHkP7UAeJ9kVEhYZoWoH936ZfjJZVtuxM5ZH3vlLXxcQav/5TPxB+YHH8Ekfh4wV0MLUbKGLoBdqihYOt9vHq62d07XbSqtUqhqHrce0sn6KITkRUi+yWadsgInkXCTQHvjbLAwl6TnqeFegmldrSGL9kCodBaAzaSLETENtnVz8l6Jg6VN5ebklxqcjLKvN5yfEwH0Ne0xHL1b45zOFcTz1AJj8rE/CUFH69/EHikAB++6MjkjSMsCCJkAKfhnVN+h6eioUwDH67qEE4GnghSRk8bTlgL2xJBrbAuIvi8rYnqJj9wqkRERieC8FP9pDtAzI5DA==
  • 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: Tue, 06 Dec 2022 14:30:25 +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>

--- 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
@@ -14,6 +14,7 @@ config CORE_PARKING
 config GRANT_TABLE
        bool "Grant table support" if EXPERT
        default y
+       depends on !PV_SHIM_EXCLUSIVE
        ---help---
          Grant table provides a generic mechanism to memory sharing
          between domains. This shared memory interface underpins the




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.