Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
kconfig: Add PCIe devices to s390x machines
It is useful to extend the number of available PCIe devices to KVM guests
for passthrough scenarios and also to expose these models to a different
(big endian) architecture. Introduce a new config PCIE_DEVICES to select
models, Intel Ethernet adapters and one USB controller. These devices all
support MSI-X which is a requirement on s390x as legacy INTx are not
supported.

Cc: Matthew Rosato <mjrosato@linux.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Message-ID: <20230712080146.839113-1-clg@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
legoater authored and bonzini committed Jul 14, 2023
1 parent 230dfd9 commit cc9ff56
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions configs/devices/s390x-softmmu/default.mak
Expand Up @@ -7,6 +7,7 @@
#CONFIG_VFIO_CCW=n
#CONFIG_VIRTIO_PCI=n
#CONFIG_WDT_DIAG288=n
#CONFIG_PCIE_DEVICES=n

# Boards:
#
Expand Down
4 changes: 2 additions & 2 deletions hw/net/Kconfig
Expand Up @@ -41,12 +41,12 @@ config E1000_PCI

config E1000E_PCI_EXPRESS
bool
default y if PCI_DEVICES
default y if PCI_DEVICES || PCIE_DEVICES
depends on PCI_EXPRESS && MSI_NONBROKEN

config IGB_PCI_EXPRESS
bool
default y if PCI_DEVICES
default y if PCI_DEVICES || PCIE_DEVICES
depends on PCI_EXPRESS && MSI_NONBROKEN

config RTL8139_PCI
Expand Down
3 changes: 3 additions & 0 deletions hw/pci/Kconfig
Expand Up @@ -8,6 +8,9 @@ config PCI_EXPRESS
config PCI_DEVICES
bool

config PCIE_DEVICES
bool

config MSI_NONBROKEN
# selected by interrupt controllers that do not support MSI,
# or support it and have a good implementation. See commit
Expand Down
3 changes: 2 additions & 1 deletion hw/s390x/Kconfig
Expand Up @@ -5,7 +5,8 @@ config S390_CCW_VIRTIO
imply VFIO_AP
imply VFIO_CCW
imply WDT_DIAG288
select PCI
imply PCIE_DEVICES
select PCI_EXPRESS
select S390_FLIC
select SCLPCONSOLE
select VIRTIO_CCW
Expand Down
2 changes: 1 addition & 1 deletion hw/usb/Kconfig
Expand Up @@ -36,7 +36,7 @@ config USB_XHCI

config USB_XHCI_PCI
bool
default y if PCI_DEVICES
default y if PCI_DEVICES || PCIE_DEVICES
depends on PCI
select USB_XHCI

Expand Down

0 comments on commit cc9ff56

Please sign in to comment.