[libvirt] [PATCH 0/3] add pci-bridge device and address type

Daniel P. Berrange berrange at redhat.com
Wed Jan 2 10:22:24 UTC 2013


On Wed, Dec 26, 2012 at 09:00:06AM +0800, liguang wrote:
> Now, it's unnecessary to arrange devices into multi-pci-bus,
> for example:
>     <sound model='ac97'>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
>     </sound>
>    <video>
>       <model type='cirrus' vram='9216' heads='1'/>
>       <address type='pci' domain='0x0000' bus='0x1' slot='0x02' function='0x0'/>
>     </video>
> libvirt will complain about "bus != 0",
> fortunately, qemu supports pci-to-pci bridge,
> if we want to use multi-pci-bus, we can define
> 2 pci bridge devices then attach 1 to the other
> as a subordinate pci-bus, so, 2 pci-buses appear.
> for example:
>     <pci-bridge type='root'/>
>     <pci-bridge type='subordinate'>
>       <address type='pci-bridge' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
>     </pci-bridge>


We shouldn't be introducing a new <pci-bridge> device for this. The
existing <controller> element is intended to handle all types of bus
devices. Just need to define a new controller type.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list