Thread (17 messages) 17 messages, 5 authors, 2021-04-15

Re: [PATCH 3/3] iommu/virtio: Enable x86 support

From: Robin Murphy <robin.murphy@arm.com>
Date: 2021-03-18 11:44:45
Also in: linux-acpi, linux-iommu

On 2021-03-16 19:16, Jean-Philippe Brucker wrote:
With the VIOT support in place, x86 platforms can now use the
virtio-iommu.

The arm64 Kconfig selects IOMMU_DMA, while x86 IOMMU drivers select it
themselves.
Actually, now that both AMD and Intel are converted over, maybe it's 
finally time to punt that to x86 arch code to match arm64?

Robin.
quoted hunk ↗ jump to hunk
Signed-off-by: Jean-Philippe Brucker <redacted>
---
  drivers/iommu/Kconfig | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index 2819b5c8ec30..ccca83ef2f06 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -400,8 +400,9 @@ config HYPERV_IOMMU
  config VIRTIO_IOMMU
  	tristate "Virtio IOMMU driver"
  	depends on VIRTIO
-	depends on ARM64
+	depends on (ARM64 || X86)
  	select IOMMU_API
+	select IOMMU_DMA if X86
  	select INTERVAL_TREE
  	select ACPI_VIOT if ACPI
  	help
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help