qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* pcie-root-port limits for q35?
@ 2024-10-08 10:14 Tejus GK
  2024-10-08 10:40 ` Daniel P. Berrangé
  0 siblings, 1 reply; 2+ messages in thread
From: Tejus GK @ 2024-10-08 10:14 UTC (permalink / raw)
  To: qemu-devel, mst, marcel.apfelbaum; +Cc: qemu-devel

Hi, recently I was trying to play with the PCIe limits on the q35 
machine type. I see that docs/pcie.txt mentions:

> The IO space is very limited, to 65536 byte-wide IO ports, and may
> even be fragmented by fixed IO ports owned by platform devices
> resulting in at most 10 PCI Express Root Ports or PCI Express
> Downstream Ports per system if devices with IO BARs are used in the
> PCI Express hierarchy

But in my own experimental setup, I was able to successfully create and 
power on a VM with 232 pcie-root-ports, with each root port hosting a 
virtio-net device on it. The root ports, and the network devices end up 
appearing inside the VM's PCI enumeration as well. So I'm left wondering 
where this limit exactly come from? And I'm not sure if I am missing 
something here, since I'm able to go way above the limit mentioned above.


regards,
tejus


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

* Re: pcie-root-port limits for q35?
  2024-10-08 10:14 pcie-root-port limits for q35? Tejus GK
@ 2024-10-08 10:40 ` Daniel P. Berrangé
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2024-10-08 10:40 UTC (permalink / raw)
  To: Tejus GK; +Cc: qemu-devel, mst, marcel.apfelbaum

On Tue, Oct 08, 2024 at 03:44:33PM +0530, Tejus GK wrote:
> Hi, recently I was trying to play with the PCIe limits on the q35 machine
> type. I see that docs/pcie.txt mentions:
> 
> > The IO space is very limited, to 65536 byte-wide IO ports, and may
> > even be fragmented by fixed IO ports owned by platform devices
> > resulting in at most 10 PCI Express Root Ports or PCI Express
> > Downstream Ports per system if devices with IO BARs are used in the
> > PCI Express hierarchy
> 
> But in my own experimental setup, I was able to successfully create and
> power on a VM with 232 pcie-root-ports, with each root port hosting a
> virtio-net device on it. The root ports, and the network devices end up
> appearing inside the VM's PCI enumeration as well. So I'm left wondering
> where this limit exactly come from? And I'm not sure if I am missing
> something here, since I'm able to go way above the limit mentioned above.

Note the very last part of the text you quoted:

   ..if devices with IO BARs are used..

     ^^

AFAIK, the virtio devices (at least in modern mode) don't use IO BARs,
thus avoiding the mentioned limit.

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



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

end of thread, other threads:[~2024-10-08 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08 10:14 pcie-root-port limits for q35? Tejus GK
2024-10-08 10:40 ` Daniel P. Berrangé

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).