Skip to contentSkip to conversation

hw/s390x: Re-enable the pci-bridge device on s390x

PATCH In review Thomas Huth 4 participants 4 messages Oct 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/s390x: Re-enable the pci-bridge device on s390x

Commit e779e5c05a ("hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge") added a config switch for the pci-bridge, so that the device is not included in the s390x target anymore (since the pci-bridge is not really useful on s390x).

However, it seems like libvirt is still adding pci-bridge devices automatically to the guests' XML definitions (when adding a PCI device to a non-zero PCI bus), so these guests are now broken due to the missing pci-bridge in the QEMU binary.

To avoid disruption of the users, let's re-enable the pci-bridge device on s390x for the time being. We could maybe disable it later again if libvirt does not add the pci-bridge device automatically to the guests anymore in the future.

---
 hw/s390x/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/s390x/Kconfig +1 -0
index 3bbf4ae56e..82afdaa9dc 100644
@@ -7,6 +7,7 @@ config S390_CCW_VIRTIO
     imply VFIO_AP
     imply VFIO_CCW
     imply WDT_DIAG288
+    imply PCI_BRIDGE
     imply PCIE_DEVICES
     imply IOMMUFD
     select PCI_EXPRESS
Signature · 1 line
2.47.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Thomas Huth

Commit e779e5c05a ("hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge") added a config switch for the pci-bridge, so that the device is not included in the s390x target anymore (since the pci-bridge is not really useful on s390x).

However, it seems like libvirt is still adding pci-bridge devices automatically to the guests' XML definitions (when adding a PCI device to a non-zero PCI bus), so these guests are now broken due to the missing pci-bridge in the QEMU binary.

Quoted 6 lines

To avoid disruption of the users, let's re-enable the pci-bridge device on s390x for the time being. We could maybe disable it later again if libvirt does not add the pci-bridge device automatically to the guests anymore in the future.

Thanks,

C.

Quoted 16 lines
---
  hw/s390x/Kconfig | 1 +
  1 file changed, 1 insertion(+)
hw/s390x/Kconfig +1 -0
index 3bbf4ae56e..82afdaa9dc 100644
@@ -7,6 +7,7 @@ config S390_CCW_VIRTIO
      imply VFIO_AP
      imply VFIO_CCW
      imply WDT_DIAG288
+    imply PCI_BRIDGE
      imply PCIE_DEVICES
      imply IOMMUFD
      select PCI_EXPRESS
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth

Just my two cents on this with regard to the future:
Tools using libvirt to define or modify libvirt domains should not be enforced to change there PCI code logic to prevent the usage of pci-bridge for s390x. The PCI bus configuration in QEMU is QEMU internal only as the zPCI configuration is used in the s390x guest.

Therefore for this patch

Quoted 32 lines · Thomas Huth

Commit e779e5c05a ("hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge") added a config switch for the pci-bridge, so that the device is not included in the s390x target anymore (since the pci-bridge is not really useful on s390x).

However, it seems like libvirt is still adding pci-bridge devices automatically to the guests' XML definitions (when adding a PCI device to a non-zero PCI bus), so these guests are now broken due to the missing pci-bridge in the QEMU binary.

To avoid disruption of the users, let's re-enable the pci-bridge device on s390x for the time being. We could maybe disable it later again if libvirt does not add the pci-bridge device automatically to the guests anymore in the future.

---
  hw/s390x/Kconfig | 1 +
  1 file changed, 1 insertion(+)
hw/s390x/Kconfig +1 -0
index 3bbf4ae56e..82afdaa9dc 100644
@@ -7,6 +7,7 @@ config S390_CCW_VIRTIO
      imply VFIO_AP
      imply VFIO_CCW
      imply WDT_DIAG288
+    imply PCI_BRIDGE
      imply PCIE_DEVICES
      imply IOMMUFD
      select PCI_EXPRESS
Signature · 8 lines
Mit freundlichen Grüßen/Kind regards
   Boris Fiuczynski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Wolfgang Wendt
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
Reviewed-by on v1 1/1
#3 lore raw
In reply to Thomas Huth
Quoted 15 lines · Thomas Huth

Commit e779e5c05a ("hw/pci-bridge: Add a Kconfig switch for the normal PCI bridge") added a config switch for the pci-bridge, so that the device is not included in the s390x target anymore (since the pci-bridge is not really useful on s390x).

However, it seems like libvirt is still adding pci-bridge devices automatically to the guests' XML definitions (when adding a PCI device to a non-zero PCI bus), so these guests are now broken due to the missing pci-bridge in the QEMU binary.

To avoid disruption of the users, let's re-enable the pci-bridge device on s390x for the time being. We could maybe disable it later again if libvirt does not add the pci-bridge device automatically to the guests anymore in the future.

Quoted 4 lines
---
  hw/s390x/Kconfig | 1 +
  1 file changed, 1 insertion(+)