iommu/virtio: Build virtio-iommu as module
Now that the infrastructure changes are in place, enable virtio-iommu to be built as a module. Remove the redundant pci_request_acs() call, since it's not exported but is already invoked during DMA setup. Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
f8788d86ab
commit
fa4afd78ea
2 changed files with 2 additions and 3 deletions
|
@ -506,8 +506,8 @@ config HYPERV_IOMMU
|
||||||
guests to run with x2APIC mode enabled.
|
guests to run with x2APIC mode enabled.
|
||||||
|
|
||||||
config VIRTIO_IOMMU
|
config VIRTIO_IOMMU
|
||||||
bool "Virtio IOMMU driver"
|
tristate "Virtio IOMMU driver"
|
||||||
depends on VIRTIO=y
|
depends on VIRTIO
|
||||||
depends on ARM64
|
depends on ARM64
|
||||||
select IOMMU_API
|
select IOMMU_API
|
||||||
select INTERVAL_TREE
|
select INTERVAL_TREE
|
||||||
|
|
|
@ -1082,7 +1082,6 @@ static int viommu_probe(struct virtio_device *vdev)
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
if (pci_bus_type.iommu_ops != &viommu_ops) {
|
if (pci_bus_type.iommu_ops != &viommu_ops) {
|
||||||
pci_request_acs();
|
|
||||||
ret = bus_set_iommu(&pci_bus_type, &viommu_ops);
|
ret = bus_set_iommu(&pci_bus_type, &viommu_ops);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_unregister;
|
goto err_unregister;
|
||||||
|
|
Loading…
Add table
Reference in a new issue