[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] iommu: restrict scratch page quarantining to x86
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Date: Thu, 24 Jul 2025 13:43:48 -0400
- 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=KAoSgw8SWCzjD25FtVeuCnLVIg8fFEHgFLOsGXqcpf8=; b=Nrb1FbXwTE2W7q+3DSFecRd/ScufpB0Opelb1aM66IiQQ0jEQuFsSt7Y1HOhuKL1KdQQG9vFVhy7TrbV9KubQ9xfmSSPwGPEh/T1iCAWTWW3Wl3WcWuxEjQkTXRhiJQujrHgsDMXn82LDbuZzsQByWGGwBJ3PjpZohLiMRK6H34G+waEYtWvaloGqHzRtkJv/FT7tLeyB2kWifyE71CnnjJVc3/lcnpTNg8wYAwkSLNKkT7z+y0ID9rIWfyLJVR4o3fWlp7DaHByuBuXXYTZHn7uvxM6if2Q5UwGBmUUgpap+D2/VkE9gr65KgEEj5T7wAQdDCjUWdBLcvqKiH1LyQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ccbFacQf2GjI7WbFhWt51HXWX74BCtvC1qgEVg44Nwe3k5vuY6rlpgdkMjvOWv14CFfeFCHD34eRtq3jxt10ucUWfRIdwD5shf8iep54EodURIJwdRcuUrddgN7nSaVjWPfHzwgJEasw+WRuUn8b+uNWC3wN6C0dZoRMBy9m2KDMJZ4z3poNIwVN+gccy9YnQBr2sFl6vm/pmMz3aPZ2N/od8uoi5fCZ8H98uSnGI0Bx6pRtoWAI8KqKMp/3FUp7slCnX2lu/YB2YtYfIiN7eah1e4dxOyTh987ExrrRXPCh9dJ75eJITZHeSv0h+uFAYMqGWdgdZFvDpvtb0DqHPg==
- Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 24 Jul 2025 17:44:15 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
All IOMMU_QUARANTINE_* options are exposed on Arm since 163c6b589879
("xen/arm: pci: introduce PCI_PASSTHROUGH Kconfig option"). However,
only NONE and BASIC are implemented in any Arm iommu driver since
63919fc4d1ca ("xen/arm: smmuv3: Add PCI devices support for SMMUv3") and
ca8f6ffeb6e3 ("xen/arm: smmuv2: Add PCI devices support for SMMUv2").
SCRATCH_PAGE is not yet implemented in any Arm iommu driver. Restrict
scratch page quarantining to x86 for now.
Reported-by: Jan Beulich <jbeulich@xxxxxxxx>
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
Cc'ing Arm maintainers to request an Arm ack.
---
xen/drivers/passthrough/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig
index 78edd805365e..11aece5f7bda 100644
--- a/xen/drivers/passthrough/Kconfig
+++ b/xen/drivers/passthrough/Kconfig
@@ -90,4 +90,5 @@ choice
bool "basic"
config IOMMU_QUARANTINE_SCRATCH_PAGE
bool "scratch page"
+ depends on X86
endchoice
base-commit: 150b773a484c911e2926f65adb576e1cdf9de7cf
--
2.50.1
|