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>
This commit is contained in:
parent
230dfd9257
commit
cc9ff56fc3
@ -7,6 +7,7 @@
|
|||||||
#CONFIG_VFIO_CCW=n
|
#CONFIG_VFIO_CCW=n
|
||||||
#CONFIG_VIRTIO_PCI=n
|
#CONFIG_VIRTIO_PCI=n
|
||||||
#CONFIG_WDT_DIAG288=n
|
#CONFIG_WDT_DIAG288=n
|
||||||
|
#CONFIG_PCIE_DEVICES=n
|
||||||
|
|
||||||
# Boards:
|
# Boards:
|
||||||
#
|
#
|
||||||
|
@ -41,12 +41,12 @@ config E1000_PCI
|
|||||||
|
|
||||||
config E1000E_PCI_EXPRESS
|
config E1000E_PCI_EXPRESS
|
||||||
bool
|
bool
|
||||||
default y if PCI_DEVICES
|
default y if PCI_DEVICES || PCIE_DEVICES
|
||||||
depends on PCI_EXPRESS && MSI_NONBROKEN
|
depends on PCI_EXPRESS && MSI_NONBROKEN
|
||||||
|
|
||||||
config IGB_PCI_EXPRESS
|
config IGB_PCI_EXPRESS
|
||||||
bool
|
bool
|
||||||
default y if PCI_DEVICES
|
default y if PCI_DEVICES || PCIE_DEVICES
|
||||||
depends on PCI_EXPRESS && MSI_NONBROKEN
|
depends on PCI_EXPRESS && MSI_NONBROKEN
|
||||||
|
|
||||||
config RTL8139_PCI
|
config RTL8139_PCI
|
||||||
|
@ -8,6 +8,9 @@ config PCI_EXPRESS
|
|||||||
config PCI_DEVICES
|
config PCI_DEVICES
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config PCIE_DEVICES
|
||||||
|
bool
|
||||||
|
|
||||||
config MSI_NONBROKEN
|
config MSI_NONBROKEN
|
||||||
# selected by interrupt controllers that do not support MSI,
|
# selected by interrupt controllers that do not support MSI,
|
||||||
# or support it and have a good implementation. See commit
|
# or support it and have a good implementation. See commit
|
||||||
|
@ -5,7 +5,8 @@ config S390_CCW_VIRTIO
|
|||||||
imply VFIO_AP
|
imply VFIO_AP
|
||||||
imply VFIO_CCW
|
imply VFIO_CCW
|
||||||
imply WDT_DIAG288
|
imply WDT_DIAG288
|
||||||
select PCI
|
imply PCIE_DEVICES
|
||||||
|
select PCI_EXPRESS
|
||||||
select S390_FLIC
|
select S390_FLIC
|
||||||
select SCLPCONSOLE
|
select SCLPCONSOLE
|
||||||
select VIRTIO_CCW
|
select VIRTIO_CCW
|
||||||
|
@ -36,7 +36,7 @@ config USB_XHCI
|
|||||||
|
|
||||||
config USB_XHCI_PCI
|
config USB_XHCI_PCI
|
||||||
bool
|
bool
|
||||||
default y if PCI_DEVICES
|
default y if PCI_DEVICES || PCIE_DEVICES
|
||||||
depends on PCI
|
depends on PCI
|
||||||
select USB_XHCI
|
select USB_XHCI
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user