qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] >256 Virtio-net-pci hotplug Devices
@ 2017-07-17 21:50 Kinsella, Ray
  2017-07-18 13:49 ` Marcel Apfelbaum
  0 siblings, 1 reply; 14+ messages in thread
From: Kinsella, Ray @ 2017-07-17 21:50 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, marcel@redhat.com

Hi folks,

I am trying to create a VM that supports hot-plugging a large number of virtio-net-pci device, 
up to 1000 devices initially.

>From the docs (see below) and from playing with QEMU, it looks like there are two options.
Both with limitations.

PCI Express switch

It looks like using a PCI Express switch hierarchy is not an option due to bus exhaustion. 
Each downstream port creates a separate bus and each downstream port only supports hot-plugging a single device.
So this gives us a max of 256-ish buses/devices pairs.

PCI Root Ports

The other option is use a flatter hierarchy, with a number of multi-function PCI Root Ports hanging off 'pcie.0'.
However each 'PCI Root Port' can support hot-plugging a single device. 
So this method really becomes a function of how many free address we have on 'pci.0'.
If we make room for say 16 multifunction devices, we get 16*8 ... 128
So ultimately, this will approach will give us a similar to number to using a switch. 

Is there another method?
( pxb-pcie doesn't support hotplug for instance, and only a single pcie domain is supported qemu )

Thanks,

Ray K

Pcie.txt, 
( https://github.com/qemu/qemu/blob/master/docs/pcie.txt )
Q35 preso
( http://wiki.qemu.org/images/4/4e/Q35.pdf )

 

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

end of thread, other threads:[~2017-08-09 16:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 21:50 [Qemu-devel] >256 Virtio-net-pci hotplug Devices Kinsella, Ray
2017-07-18 13:49 ` Marcel Apfelbaum
2017-07-20  0:44   ` Kinsella, Ray
2017-07-21  8:33     ` Marcel Apfelbaum
2017-07-21 23:57       ` Kinsella, Ray
2017-07-23 16:28         ` Marcel Apfelbaum
2017-07-23 20:04           ` Kevin O'Connor
2017-07-24  4:53             ` Kinsella, Ray
2017-07-24  7:14               ` Marcel Apfelbaum
2017-07-25 18:00                 ` Kinsella, Ray
2017-08-02 12:43                   ` Marcel Apfelbaum
2017-08-07 19:00                     ` Kinsella, Ray
2017-08-09 10:53                       ` Marcel Apfelbaum
2017-08-09 16:36                         ` Kinsella, Ray

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