[libvirt] [PATCH v4 4/4] auto-create pci-bridge controller info

Ján Tomko jtomko at redhat.com
Mon Mar 4 16:51:54 UTC 2013


On 02/19/13 03:25, liguang wrote:
> if some devices specify a pci bus number that
> haven't been defined by a pci-bridge controller
> then fill the required correct controller info
> silently.
> 
> Acked-by: Daniel P. Berrange <berrange at redhat.com>
> Signed-off-by: liguang <lig.fnst at cn.fujitsu.com>
> ---

This will only add bridges for the explictly mentioned buses, which
would mean we could have buses 0 and 6 with no buses between them.
Maybe we should add them the way we add disk controllers - find the
highest index and add all bridges with indexes from 1 to max.

It would be nice if we could add pci bridges even when there weren't any
specified in the XML, but there are too many PCI devices. I don't know
what would be the nicest way to do that. Maybe Peter's patches for
config parser defaults will be helpful:
https://www.redhat.com/archives/libvir-list/2013-March/msg00042.html

Jan




More information about the libvir-list mailing list