Skip to contentSkip to conversation

vfio-pci: enable by default

PATCH In review Paolo Bonzini 3 participants 3 messages Mar 8, 2019 – Mar 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio-pci: enable by default

CONFIG_VFIO_PCI was not "default y" - and once you do that, it is also important to disable it if PCI is not there.

---
 hw/vfio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/vfio/Kconfig +2 -1
index ebda9fdf22..34da2a3cfd 100644
@@ -4,8 +4,9 @@ config VFIO
 
 config VFIO_PCI
     bool
+    default y
     select VFIO
-    depends on LINUX
+    depends on LINUX && PCI
 
 config VFIO_CCW
     bool
Signature · 1 line
2.20.1
Tested-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Fri, 8 Mar 2019 18:36:22 +0100 Paolo Bonzini <[email protected]> wrote:

CONFIG_VFIO_PCI was not "default y" - and once you do that, it is also important to disable it if PCI is not there.

---
 hw/vfio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks Paolo! FWIW...

Quoted 15 lines
hw/vfio/Kconfig +2 -1
index ebda9fdf22..34da2a3cfd 100644
@@ -4,8 +4,9 @@ config VFIO
 
 config VFIO_PCI
     bool
+    default y
     select VFIO
-    depends on LINUX
+    depends on LINUX && PCI
 
 config VFIO_CCW
     bool
Tested-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini

Just faced this problem when trying to test vfio-pci using upstream:

qemu-system-ppc64: -device vfio-pci,host=0035:03:00.0,id=hostdev8: 'vfio-pci' is not a valid device model name

This patch fixed it.

Quoted 24 lines · Paolo Bonzini

CONFIG_VFIO_PCI was not "default y" - and once you do that, it is also important to disable it if PCI is not there.

---
  hw/vfio/Kconfig | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
hw/vfio/Kconfig +2 -1
index ebda9fdf22..34da2a3cfd 100644
@@ -4,8 +4,9 @@ config VFIO
 
  config VFIO_PCI
      bool
+    default y
      select VFIO
-    depends on LINUX
+    depends on LINUX && PCI
 
  config VFIO_CCW
      bool