virtio-iommu: depend on PCI
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Mar 2020 10:41:24 +0000 (11:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 1 Apr 2020 17:00:16 +0000 (19:00 +0200)
The virtio-iommu device attaches itself to a PCI bus, so it makes
no sense to include it unless PCI is supported---and in fact
compilation fails without this change.

Reported-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/Kconfig

index d29525b36faa8e08e047e5eddab60769c89d6d35..83122424fabc84c5aacfc8e97e6af78c7cb8b6ed 100644 (file)
@@ -12,7 +12,7 @@ config VIRTIO_RNG
 config VIRTIO_IOMMU
     bool
     default y
-    depends on VIRTIO
+    depends on PCI && VIRTIO
 
 config VIRTIO_PCI
     bool