[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 13/13] xen/arm: mmu: enable SMMU subsystem only in MMU
- To: Julien Grall <julien@xxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Tue, 22 Aug 2023 02:11:33 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=sz04x7MikqIpqJE7huYTdA/1SCRnDCEzFbo1Pi515EU=; b=I0lEwfijTqAY+TibECIwkfq+XtuoefxvT6yjrahvAD68qBvj4NM7CopLC+mrHlq/rrrLyqzS0IxfYYQXZRKV5gCOx47hR9qYek1gvnqA2t7MhhSTlOD02eCKXwJocSeCPCLiqpL7F7ZAbVs2R4dDlbyTubwEri0tegMqsDf3uE/WaQRPB3tEh2L05wY7o/K90m5pYFrox8VRTrDxvFr21vwnd45EfTWVu9lwttKs7nNbimdZKU6jXliE3YpLvO261Zq2KA1Ds9VZkg3CaJMrEm3l517nlE10cnnhnj+HPgw/dq6Zpuv25H5C+YXnclMvyUK2ArnAFbFzOJQTNZv2cw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T7QAXa/EYo/5Xeq4XkkuYamkLhGSu2C/9rddXqKTIbLczjExUg3JFKlN25UxfUfK+ymuqxu4LBdAC+9RjmGoWZuje4zw1weEjd0CAADsZOKtNxEnDDAz33q2N7G2j6Pa87wiER7UbyHd8CFL6W9qZUyGgtsIB8EcDIog+9sHz3GsbN5BMOEK7kEqryMFsSCXbC57rdSkf582ptX2mY7e3zVF4DM3VLSLl7Wnr47N3aPwQK+KvSQ2+NzwQdt5LuC4ZZ/SJ4oBebIWpCNu/Jn2R+1rPv0a4hsBllSG5YSEINNpFF0q896cuKKUb5AoO9PduMNmeHgZm0CI+7fG32jjyA==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>
- Delivery-date: Tue, 22 Aug 2023 02:12:57 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHZzmeUay8NQ4kvrE+CkZdRGQuMz6/1UcMAgABNUIA=
- Thread-topic: [PATCH v5 13/13] xen/arm: mmu: enable SMMU subsystem only in MMU
Hi Julien,
> On Aug 22, 2023, at 05:34, Julien Grall <julien@xxxxxxx> wrote:
>
> Hi,
>
> On 14/08/2023 05:25, Henry Wang wrote:
>> From: Penny Zheng <Penny.Zheng@xxxxxxx>
>> SMMU subsystem is only supported in MMU system, so we make it dependent
>> on CONFIG_HAS_MMU.
>
> "only supported" as in it doesn't work with Xen or the HW is not supporting
> it?
I think currently there are no hardware combination of MPU + SMMU, but
theoretically I think this is a valid combination since SMMU supports the linear
mapping. So would below reword looks good to you:
“Currently the hardware use case of connecting SMMU to MPU system is rarely
seen, so we make CONFIG_ARM_SMMU and CONFIG_ARM_SMMU_V3
dependent on CONFIG_MMU."
>
> Also, I am not entirely convinced that anything in passthrough would properly
> work with MPU. At least none of the IOMMU drivers are. So I would consider to
> completely disable HAS_PASSTHROUGH.
I agree, do you think adding below addition diff to this patch makes sense to
you?
If so I guess would also need to mention this in commit message.
```
diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 8a7b79b4b5..fd29d14ed6 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -13,7 +13,7 @@ config ARM
def_bool y
select HAS_ALTERNATIVE
select HAS_DEVICE_TREE
- select HAS_PASSTHROUGH
+ select HAS_PASSTHROUGH if MMU
select HAS_PDX
select HAS_UBSAN
select IOMMU_FORCE_PT_SHARE
```
Kind regards,
Henry
|