qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] kconfig: Add PCIe devices to s390x machines
@ 2023-07-05 15:23 Cédric Le Goater
  2023-07-05 19:32 ` Matthew Rosato
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Cédric Le Goater @ 2023-07-05 15:23 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-s390x, Thomas Huth, Christian Borntraeger, Matthew Rosato,
	Cédric Le Goater

It is useful to extend the number of available PCI devices to KVM guests
for passthrough scenarios and also to expose these models to a different
(big endian) architecture. Include models for Intel Ethernet adapters
and one USB controller, which all support MSI-X. Devices only supporting
INTx won't work on s390x.

Signed-off-by: Cédric Le Goater <clg@redhat.com>
---

 v3: PCI -> PCI_EXPRESS
 v2: select -> imply
  
 hw/s390x/Kconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/hw/s390x/Kconfig b/hw/s390x/Kconfig
index 5e7d8a2bae8b..ab62c9120545 100644
--- a/hw/s390x/Kconfig
+++ b/hw/s390x/Kconfig
@@ -5,8 +5,11 @@ config S390_CCW_VIRTIO
     imply VFIO_AP
     imply VFIO_CCW
     imply WDT_DIAG288
-    select PCI
+    select PCI_EXPRESS
     select S390_FLIC
     select SCLPCONSOLE
     select VIRTIO_CCW
     select MSI_NONBROKEN
+    imply E1000E_PCI_EXPRESS
+    imply IGB_PCI_EXPRESS
+    imply USB_XHCI_PCI
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] kconfig: Add PCIe devices to s390x machines
  2023-07-05 15:23 [PATCH v3] kconfig: Add PCIe devices to s390x machines Cédric Le Goater
@ 2023-07-05 19:32 ` Matthew Rosato
  2023-07-05 20:25 ` Philippe Mathieu-Daudé
  2023-07-06  9:38 ` Paolo Bonzini
  2 siblings, 0 replies; 5+ messages in thread
From: Matthew Rosato @ 2023-07-05 19:32 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-devel
  Cc: qemu-s390x, Thomas Huth, Christian Borntraeger

On 7/5/23 11:23 AM, Cédric Le Goater wrote:
> It is useful to extend the number of available PCI devices to KVM guests
> for passthrough scenarios and also to expose these models to a different
> (big endian) architecture. Include models for Intel Ethernet adapters
> and one USB controller, which all support MSI-X. Devices only supporting
> INTx won't work on s390x.
> 
> Signed-off-by: Cédric Le Goater <clg@redhat.com>

Acked-by: Matthew Rosato <mjrosato@linux.ibm.com>

> ---
> 
>  v3: PCI -> PCI_EXPRESS
>  v2: select -> imply
>   
>  hw/s390x/Kconfig | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/hw/s390x/Kconfig b/hw/s390x/Kconfig
> index 5e7d8a2bae8b..ab62c9120545 100644
> --- a/hw/s390x/Kconfig
> +++ b/hw/s390x/Kconfig
> @@ -5,8 +5,11 @@ config S390_CCW_VIRTIO
>      imply VFIO_AP
>      imply VFIO_CCW
>      imply WDT_DIAG288
> -    select PCI
> +    select PCI_EXPRESS
>      select S390_FLIC
>      select SCLPCONSOLE
>      select VIRTIO_CCW
>      select MSI_NONBROKEN
> +    imply E1000E_PCI_EXPRESS
> +    imply IGB_PCI_EXPRESS
> +    imply USB_XHCI_PCI



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] kconfig: Add PCIe devices to s390x machines
  2023-07-05 15:23 [PATCH v3] kconfig: Add PCIe devices to s390x machines Cédric Le Goater
  2023-07-05 19:32 ` Matthew Rosato
@ 2023-07-05 20:25 ` Philippe Mathieu-Daudé
  2023-07-06  9:38 ` Paolo Bonzini
  2 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-07-05 20:25 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-devel
  Cc: qemu-s390x, Thomas Huth, Christian Borntraeger, Matthew Rosato

On 5/7/23 17:23, Cédric Le Goater wrote:
> It is useful to extend the number of available PCI devices to KVM guests
> for passthrough scenarios and also to expose these models to a different
> (big endian) architecture. Include models for Intel Ethernet adapters
> and one USB controller, which all support MSI-X. Devices only supporting
> INTx won't work on s390x.
> 
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
> 
>   v3: PCI -> PCI_EXPRESS
>   v2: select -> imply
>    
>   hw/s390x/Kconfig | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] kconfig: Add PCIe devices to s390x machines
  2023-07-05 15:23 [PATCH v3] kconfig: Add PCIe devices to s390x machines Cédric Le Goater
  2023-07-05 19:32 ` Matthew Rosato
  2023-07-05 20:25 ` Philippe Mathieu-Daudé
@ 2023-07-06  9:38 ` Paolo Bonzini
  2023-07-06 10:03   ` Philippe Mathieu-Daudé
  2 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2023-07-06  9:38 UTC (permalink / raw)
  To: Cédric Le Goater, qemu-devel
  Cc: qemu-s390x, Thomas Huth, Christian Borntraeger, Matthew Rosato

On 7/5/23 17:23, Cédric Le Goater wrote:
> +    imply E1000E_PCI_EXPRESS
> +    imply IGB_PCI_EXPRESS
> +    imply USB_XHCI_PCI

"imply" should only be used whenever the device can be created with the 
front-end/back-end combo command line options, and as far as I can see 
this is not the case here.

You could set CONFIG_PCIE_DEVICES=y in s390-softmmu.mak and make these 
three devices "default y if PCI_DEVICES || PCIE_DEVICES".

Paolo



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3] kconfig: Add PCIe devices to s390x machines
  2023-07-06  9:38 ` Paolo Bonzini
@ 2023-07-06 10:03   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-07-06 10:03 UTC (permalink / raw)
  To: Paolo Bonzini, Cédric Le Goater, qemu-devel
  Cc: qemu-s390x, Thomas Huth, Christian Borntraeger, Matthew Rosato

On 6/7/23 11:38, Paolo Bonzini wrote:
> On 7/5/23 17:23, Cédric Le Goater wrote:
>> +    imply E1000E_PCI_EXPRESS
>> +    imply IGB_PCI_EXPRESS
>> +    imply USB_XHCI_PCI
> 
> "imply" should only be used whenever the device can be created with the 
> front-end/back-end combo command line options, and as far as I can see 
> this is not the case here.
> 
> You could set CONFIG_PCIE_DEVICES=y in s390-softmmu.mak and make these 
> three devices "default y if PCI_DEVICES || PCIE_DEVICES".

"default y if PCIE_DEVICES" for *_PCI_EXPRESS.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-06 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 15:23 [PATCH v3] kconfig: Add PCIe devices to s390x machines Cédric Le Goater
2023-07-05 19:32 ` Matthew Rosato
2023-07-05 20:25 ` Philippe Mathieu-Daudé
2023-07-06  9:38 ` Paolo Bonzini
2023-07-06 10:03   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).