[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 2/2] xen/mmu: enable SMMU subsystem only in MMU
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Date: Fri, 8 Nov 2024 19:59:18 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=EjVkE7Hn/7zDFOepCcGvGZ5CLYZ0+pgJCfhHdOJNTRQ=; b=lnaJcug/13EPYOupgeehr5Qob4tFpQY07Jh8VQfkFBLkmkjrh3J+8GqWmisAPU4aMnvOX0Xlh+/mTpM60nwlcOI7nLm37dk4rq4wwg7wzI650D5saGF7fX4BQ6YyH4mpJ/MSBzOWXJ94oWoal72TF4j08WWSWLax9ZwSwHJhRW9445xhE1MZFYqhPxzX7wFNwdTZ3ucIj0szsfJF96mjdSi+ZvhDVa/ZOxLVMs6WhFaxIJxHgD6ljL+WB8G3Ob4k/+E5oKs5B9wZo8NLznRSXLSl7Ffc6zjsLOeRv6to35rvtqmc0EFTTJLVIPrgI45MGHPUnIzZNz9rJNu9Oa6VfQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HHBdWtrHsQWOyACF6/v0JSMkQoLXpa0OD1w3qu5Y+a15e1nU4m3qywXu8HoWg/AHiI1anpFYvljh6vVBkWuRAHqPNTmAqRY74jtaHk8cfQr6i+NxLQ926WzjTrnDwCGOrCKHUryrlgv8/stdmF2t4PKFh2SbK4Dwc2wSQ2gY26WR89ds9GnUNFPCPY0iIA3HkRw1laUOePnfM4Bm48O59ut2hHs9WGal+6X6H6Se/Ic4iqoPyCRhg/0AMYqLznfUBTCGyYqVzorH8pmtOpqu+xKo376N7Ma81IQcnT2u4aTapopRmQtIlhkdbUrKxu6vo2dDhCPTrcbG0BUB8BrE+g==
- Cc: Penny Zheng <Penny.Zheng@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Delivery-date: Fri, 08 Nov 2024 20:06:42 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
From: Penny Zheng <Penny.Zheng@xxxxxxx>
In Xen, SMMU subsystem is supported for MMU system only. The reason being SMMU
driver uses the same page tables as MMU.
Thus, we make it dependent on CONFIG_MMU.
Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
xen/arch/arm/Kconfig | 2 +-
xen/drivers/passthrough/Kconfig | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 15b2e4a227..3699e148e9 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -16,7 +16,7 @@ config ARM
select HAS_DEVICE_TREE
select HAS_PASSTHROUGH
select HAS_UBSAN
- select IOMMU_FORCE_PT_SHARE
+ select IOMMU_FORCE_PT_SHARE if MMU
config ARCH_DEFCONFIG
string
diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig
index 78edd80536..75ad403dd3 100644
--- a/xen/drivers/passthrough/Kconfig
+++ b/xen/drivers/passthrough/Kconfig
@@ -5,6 +5,7 @@ config HAS_PASSTHROUGH
if ARM
config ARM_SMMU
bool "ARM SMMUv1 and v2 driver"
+ depends on MMU
default y
help
Support for implementations of the ARM System MMU architecture
@@ -15,7 +16,7 @@ config ARM_SMMU
config ARM_SMMU_V3
bool "ARM Ltd. System MMU Version 3 (SMMUv3) Support" if EXPERT
- depends on ARM_64 && (!ACPI || BROKEN)
+ depends on ARM_64 && (!ACPI || BROKEN) && MMU
help
Support for implementations of the ARM System MMU architecture
version 3. Driver is in experimental stage and should not be used in
--
2.25.1
|