iommu/virtio: Enable x86 support
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Fri, 18 Jun 2021 15:21:00 +0000 (17:21 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 25 Jun 2021 13:02:43 +0000 (15:02 +0200)
commit8ce4904bfd22de04ac3cd35d469c0a3337bdeb7b
tree89310031b98fbbac486d40750699a3535eb238d5
parentac6d704679d343e55615551f19e9b2e18d68518b
iommu/virtio: Enable x86 support

With the VIOT support in place, x86 platforms can now use the
virtio-iommu.

Because the other x86 IOMMU drivers aren't yet ready to use the
acpi_dma_setup() path, x86 doesn't implement arch_setup_dma_ops() at the
moment. Similarly to Vt-d and AMD IOMMU, clear the DMA ops and call
iommu_setup_dma_ops() from probe_finalize().

Acked-by: Joerg Roedel <jroedel@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20210618152059.1194210-6-jean-philippe@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/dma-iommu.c
drivers/iommu/virtio-iommu.c