Re: [libvirt] [rebased][PATCH 2/4] build command line for pci-bridge device of qemu

2013-02-14 Thread li guang
在 2013-02-05二的 17:53 +0100,Ján Tomko写道: > On 01/30/13 03:30, liguang wrote: > > @@ -974,8 +967,24 @@ static char > > *qemuPCIAddressAsString(virDomainDeviceInfoPtr dev) > > return addr; > > } > > > > +static int qemuPciBridgeSupport(virDomainDefPtr def) > > +{ > > +int i, c = 0; > > +

Re: [libvirt] [rebased][PATCH 2/4] build command line for pci-bridge device of qemu

2013-02-05 Thread Ján Tomko
On 01/30/13 03:30, liguang wrote: > @@ -974,8 +967,24 @@ static char > *qemuPCIAddressAsString(virDomainDeviceInfoPtr dev) > return addr; > } > > +static int qemuPciBridgeSupport(virDomainDefPtr def) > +{ > +int i, c = 0; > + > +for (i = 0; i < def->ncontrollers; i++) { > +

[libvirt] [rebased][PATCH 2/4] build command line for pci-bridge device of qemu

2013-01-29 Thread liguang
format command line of qemu to add pci-bridge like this: -device pci-bridge. and also add a qemu capability to check if qemu support pci-bridge device Signed-off-by: liguang --- src/qemu/qemu_capabilities.c |6 ++- src/qemu/qemu_capabilities.h |1 + src/qemu/qemu_command.c | 70 ++