qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [libvirt][PATCH v2 0/2] add pci-bridge support
@ 2013-01-08  1:58 liguang
  2013-01-08  1:58 ` [Qemu-devel] [libvirt][PATCH v2 1/2] add pci-bridge controller type liguang
  2013-01-08  1:58 ` [Qemu-devel] [libvirt][PATCH v2 2/2] build command line for pci-bridge device of qemu liguang
  0 siblings, 2 replies; 11+ messages in thread
From: liguang @ 2013-01-08  1:58 UTC (permalink / raw)
  To: libvir-list, qemu-devel, mst; +Cc: liguang

Now, it's impossible 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 controllers, then attach 1 to the other
as a subordinate pci-bus, so, 2 pci-buses appear.
for example:
   <controller type='pci-bridge' index='0'/>
   <controller type='pci-bridge' index='1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' bridge='0'/>
   </controller>
   <sound model='ac97'>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x02' function='0x0' bridge='1'/>
   </sound>
   <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' bridge='0'/>
   </video>


 src/conf/device_conf.c |   11 ++++++++++-
 src/conf/device_conf.h |    1 +
 src/conf/domain_conf.c |    5 ++++-
 src/conf/domain_conf.h |    1 +
 src/qemu/qemu_command.c |   25 ++++++++++++++++++++-----
 5 files changed, 36 insertions(+), 7 deletions(-)

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

end of thread, other threads:[~2013-01-08  8:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08  1:58 [Qemu-devel] [libvirt][PATCH v2 0/2] add pci-bridge support liguang
2013-01-08  1:58 ` [Qemu-devel] [libvirt][PATCH v2 1/2] add pci-bridge controller type liguang
2013-01-08  4:38   ` Doug Goldstein
2013-01-08  5:26     ` li guang
2013-01-08  8:04   ` [Qemu-devel] [libvirt] [PATCH " Daniel P. Berrange
2013-01-08  8:37     ` li guang
2013-01-08  8:47       ` li guang
2013-01-08  8:51         ` Daniel P. Berrange
2013-01-08  8:55           ` li guang
2013-01-08  8:59             ` Daniel P. Berrange
2013-01-08  1:58 ` [Qemu-devel] [libvirt][PATCH v2 2/2] build command line for pci-bridge device of qemu liguang

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