iommu: restrict scratch page quarantining to x86
PATCH 1/1 iommu: restrict scratch page quarantining to x86
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.
---
Cc'ing Arm maintainers to request an Arm ack.
--- xen/drivers/passthrough/Kconfig | 1 + 1 file changed, 1 insertion(+)
xen/drivers/passthrough/Kconfig +1 -0
@@ -90,4 +90,5 @@ choice bool "basic" config IOMMU_QUARANTINE_SCRATCH_PAGE bool "scratch page" + depends on X86 endchoice
base-commit: 150b773a484c911e2926f65adb576e1cdf9de7cf
Signature · 1 line
2.50.1
Quoted 10 lines · Stewart Hildebrand
All IOMMU_QUARANTINE_* options are exposed on Arm since
163c6b589879("xen/arm: pci: introducePCI_PASSTHROUGHKconfigoption"). However, only NONE and BASIC are implemented in any Arm iommu driver since63919fc4d1ca("xen/arm: smmuv3: Add PCI devices support for SMMUv3") andca8f6ffeb6e3("xen/arm: smmuv2: Add PCI devices support for SMMUv2").SCRATCH_PAGEis not yet implemented in any Arm iommu driver. Restrict scratch page quarantining to x86 for now.Reported-by Jan Beulich <[email protected]>Signed-off-by Stewart Hildebrand <[email protected]>
Quoted 21 lines
---
Cc'ing Arm maintainers to request an Arm ack.--- xen/drivers/passthrough/Kconfig | 1 + 1 file changed, 1 insertion(+)xen/drivers/passthrough/Kconfig +1
-0@@ -90,4 +90,5 @@ choice bool "basic" config IOMMU_QUARANTINE_SCRATCH_PAGE bool "scratch page" + depends on X86 endchoicebase-commit:
150b773a484c911e2926f65adb576e1cdf9de7cfSignature · 1 line
2.50.1
Quoted 21 lines · Stewart Hildebrand
All IOMMU_QUARANTINE_* options are exposed on Arm since
163c6b589879("xen/arm: pci: introducePCI_PASSTHROUGHKconfigoption"). However, only NONE and BASIC are implemented in any Arm iommu driver since63919fc4d1ca("xen/arm: smmuv3: Add PCI devices support for SMMUv3") andca8f6ffeb6e3("xen/arm: smmuv2: Add PCI devices support for SMMUv2").SCRATCH_PAGEis not yet implemented in any Arm iommu driver. Restrict scratch page quarantining to x86 for now.Reported-by Jan Beulich <[email protected]>Signed-off-by Stewart Hildebrand <[email protected]>---
Cc'ing Arm maintainers to request an Arm ack.--- xen/drivers/passthrough/Kconfig | 1 + 1 file changed, 1 insertion(+)xen/drivers/passthrough/Kconfig +0
-0
xen/drivers/passthrough/Kconfig choice · line 93
Quoted 4 lines
xen/drivers/passthrough/Kconfig +1
-0@@ -90,4 +90,5 @@ choice bool "basic" config IOMMU_QUARANTINE_SCRATCH_PAGE bool "scratch page" + depends on X86
Since this is tied to specific IOMMU implementations, could you please tie it to AMD_IOMMU and INTEL_IOMMU instead of X86?
depends on AMD_IOMMU || INTEL_IOMMU
Should do it I think?
Thanks, Roger.
Quoted 30 lines · Roger Pau Monné
Quoted 21 lines · Stewart Hildebrand
All IOMMU_QUARANTINE_* options are exposed on Arm since
163c6b589879("xen/arm: pci: introducePCI_PASSTHROUGHKconfigoption"). However, only NONE and BASIC are implemented in any Arm iommu driver since63919fc4d1ca("xen/arm: smmuv3: Add PCI devices support for SMMUv3") andca8f6ffeb6e3("xen/arm: smmuv2: Add PCI devices support for SMMUv2").SCRATCH_PAGEis not yet implemented in any Arm iommu driver. Restrict scratch page quarantining to x86 for now.Reported-by Jan Beulich <[email protected]>Signed-off-by Stewart Hildebrand <[email protected]>---
Cc'ing Arm maintainers to request an Arm ack.--- xen/drivers/passthrough/Kconfig | 1 + 1 file changed, 1 insertion(+)xen/drivers/passthrough/Kconfig +0
-0xen/drivers/passthrough/Kconfig choice · line 93
Quoted 4 lines
xen/drivers/passthrough/Kconfig +1
-0@@ -90,4 +90,5 @@ choice bool "basic" config IOMMU_QUARANTINE_SCRATCH_PAGE bool "scratch page" + depends on X86Since this is tied to specific IOMMU implementations, could you please tie it to
AMD_IOMMUandINTEL_IOMMUinstead of X86?
Quoted 3 lines
depends on
AMD_IOMMU||INTEL_IOMMUShould do it I think?
Yes, that makes sense. Since the version with X86 was already committed, I'll send the modification with a Fixes: tag.