diff mbox series

[PULL,03/15] virtio-iommu: depend on PCI

Message ID 20200402190640.1693-4-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,01/15] hw/scsi/vmw_pvscsi: Remove assertion for kick after reset | expand

Commit Message

Paolo Bonzini April 2, 2020, 7:06 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/virtio/Kconfig b/hw/virtio/Kconfig
index d29525b36f..83122424fa 100644
--- a/hw/virtio/Kconfig
+++ b/hw/virtio/Kconfig
@@ -12,7 +12,7 @@  config VIRTIO_RNG
 config VIRTIO_IOMMU
     bool
     default y
-    depends on VIRTIO
+    depends on PCI && VIRTIO
 
 config VIRTIO_PCI
     bool