[PATCH] iommu: restrict stratch page quarantining to specific iommu drivers

Stewart Hildebrand posted 1 patch 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250725161304.6723-1-stewart.hildebrand@amd.com
xen/drivers/passthrough/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] iommu: restrict stratch page quarantining to specific iommu drivers
Posted by Stewart Hildebrand 3 months ago
Scratch page quarantining is tied to specific IOMMU implementations, not
architectures, so tie it to AMD_IOMMU and INTEL_IOMMU instead of X86.

Fixes: dd7e55a8848c ("iommu: restrict scratch page quarantining to x86")
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
---
 xen/drivers/passthrough/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig
index 11aece5f7bda..b413c33a4c7a 100644
--- a/xen/drivers/passthrough/Kconfig
+++ b/xen/drivers/passthrough/Kconfig
@@ -90,5 +90,5 @@ choice
 		bool "basic"
 	config IOMMU_QUARANTINE_SCRATCH_PAGE
 		bool "scratch page"
-		depends on X86
+		depends on AMD_IOMMU || INTEL_IOMMU
 endchoice

base-commit: 6cd9b9226c65c962b0f0e040e7d3d5c4053f8e06
-- 
2.50.1
Re: [PATCH] iommu: restrict stratch page quarantining to specific iommu drivers
Posted by Jan Beulich 3 months ago
On 25.07.2025 18:13, Stewart Hildebrand wrote:
> Scratch page quarantining is tied to specific IOMMU implementations, not
> architectures, so tie it to AMD_IOMMU and INTEL_IOMMU instead of X86.
> 
> Fixes: dd7e55a8848c ("iommu: restrict scratch page quarantining to x86")

One of {Requested,Suggested,Reported}-by: Roger Pau Monné <roger.pau@citrix.com>

> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com>

Reviewed-by: Jan Beulich <jbeulich@suse.com>


Re: [PATCH] iommu: restrict stratch page quarantining to specific iommu drivers
Posted by Stefano Stabellini 3 months ago
On Fri, 25 Jul 2025, Stewart Hildebrand wrote:
> Scratch page quarantining is tied to specific IOMMU implementations, not
> architectures, so tie it to AMD_IOMMU and INTEL_IOMMU instead of X86.
> 
> Fixes: dd7e55a8848c ("iommu: restrict scratch page quarantining to x86")
> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
>  xen/drivers/passthrough/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/xen/drivers/passthrough/Kconfig b/xen/drivers/passthrough/Kconfig
> index 11aece5f7bda..b413c33a4c7a 100644
> --- a/xen/drivers/passthrough/Kconfig
> +++ b/xen/drivers/passthrough/Kconfig
> @@ -90,5 +90,5 @@ choice
>  		bool "basic"
>  	config IOMMU_QUARANTINE_SCRATCH_PAGE
>  		bool "scratch page"
> -		depends on X86
> +		depends on AMD_IOMMU || INTEL_IOMMU
>  endchoice
> 
> base-commit: 6cd9b9226c65c962b0f0e040e7d3d5c4053f8e06
> -- 
> 2.50.1
>