]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: auto-add bridges and allow using them
authorJán Tomko <jtomko@redhat.com>
Fri, 19 Apr 2013 10:38:53 +0000 (12:38 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 25 Apr 2013 11:19:40 +0000 (13:19 +0200)
commit9d6e56dbce462a4ab7f9972d203c36815a231ee3
treec7ff161de3ac2b735ff9dacb74707d1b0f85b866
parentb33eb0dca1175bc0e3f796f18e31adc1d8c185c5
qemu: auto-add bridges and allow using them

Add a "dry run" address allocation to figure out how many bridges
will be needed for all the devices without explicit addresses.

Auto-add just enough bridges to put all the devices on, or up to the
bridge with the largest specified index.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
tests/qemuxml2argvdata/qemuxml2argv-pci-autoadd-addr.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-pci-autoadd-addr.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-pci-autoadd-idx.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-pci-autoadd-idx.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-pci-bridge.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autoadd-addr.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-pci-autoadd-idx.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c