libvirt/tests
Daniel P. Berrange 9258ec0a2e Rewrite way QEMU PCI addresses are allocated
The current QEMU code allocates PCI addresses incrementally starting
at 4. This is not satisfactory because the user may have given some
addresses in their XML config, which need to be skipped over when
allocating addresses to remaining devices.

It is thus neccessary to maintain a list of already allocated PCI
addresses and then only allocate ones that remain unused. This is
also required for domain device hotplug to work properly later.

* src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Add APIs for creating
  list of existing PCI addresses, and allocating new addresses.
  Refactor address assignment to use this code
* src/qemu/qemu_driver.c: Pull PCI address assignment up into the
  qemuStartVMDaemon() method, as a prelude to moving it into the
  'define' method. Update list of allocated addresses when connecting
  to a running VM at daemon startup.
* tests/qemuxml2argvtest.c, tests/qemuargv2xmltest.c,
  tests/qemuxml2xmltest.c: Remove USB product test since all
  passthrough is done based on address
* tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args,
  tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.xml: Kil
  unused data files
2010-02-02 16:31:47 +00:00
..
capabilityschemadata Add a more featureful qemu capabilities test data 2009-09-10 12:25:42 +01:00
confdata remove all trailing blank lines 2009-07-16 15:06:42 +02:00
domainschemadata Support for container related domain XML extensions 2008-08-01 13:31:37 +00:00
interfaceschemadata Update interface.rng and xml test files to match netcf 0.1.5 2010-01-19 21:13:03 +01:00
networkxml2xmlin Add support for an external TFTP boot server 2009-10-28 15:57:49 +01:00
networkxml2xmlout Add support for an external TFTP boot server 2009-10-28 15:57:49 +01:00
nodedevschemadata nodedev: Add removable storage 'media_label' prop 2009-12-14 14:58:23 +01:00
nodeinfodata remove all trailing blank lines 2009-07-16 15:06:42 +02:00
qemuhelpdata Probe for -device and use -nodefaults 2010-01-18 13:39:14 +00:00
qemuxml2argvdata Rewrite way QEMU PCI addresses are allocated 2010-02-02 16:31:47 +00:00
sexpr2xmldata Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
storagepoolxml2xmlin tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
storagepoolxml2xmlout tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
storagevolxml2xmlin tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
storagevolxml2xmlout tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
vmx2xmldata esx: Add VNC support 2010-01-18 01:44:20 +01:00
xencapsdata remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xmconfigdata Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
xml2sexprdata Remove restriction on duplicated sound devices in parser 2010-01-18 12:44:50 +00:00
xml2vmxdata esx: Add VNC support 2010-01-18 01:44:20 +01:00
.gitignore tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
.valgrind.supp Supress annoying libcap-ng errors from valgrind 2009-11-26 12:07:17 +00:00
capabilityschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
conftest.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
cpuset Various error reporting fixes 2009-11-03 16:46:54 -05:00
daemon-conf Make test suite output less verbose 2010-01-15 16:28:05 +00:00
define-dev-segfault Fix up "make check" 2009-10-07 12:18:13 +02:00
domainschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
esxutilstest.c esx: Stop passing around virConnectPtr for error reporting 2010-01-26 01:19:23 +01:00
eventtest.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
int-overflow Fix up "make check" 2009-10-07 12:18:13 +02:00
interfaceschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
interfacexml2xmltest.c Update interface.rng and xml test files to match netcf 0.1.5 2010-01-19 21:13:03 +01:00
libvirtd-fail Fix up "make check" 2009-10-07 12:18:13 +02:00
libvirtd-pool Fix up "make check" 2009-10-07 12:18:13 +02:00
Makefile.am fix "make distcheck" failure 2010-01-21 15:24:15 +01:00
networkschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
networkxml2xmltest.c Add support for an external TFTP boot server 2009-10-28 15:57:49 +01:00
nodedevschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
nodedevxml2xmltest.c nodedev: Add removable storage 'media_label' prop 2009-12-14 14:58:23 +01:00
nodeinfotest.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
object-locking.ml Fix up a few typos in the tree. 2009-09-30 14:05:24 +02:00
oomtrace.pl Generic test suite helpers for OOM testing 2008-05-29 15:21:45 +00:00
qemuargv2xmltest.c Rewrite way QEMU PCI addresses are allocated 2010-02-02 16:31:47 +00:00
qemuhelptest.c Implement CPU topology support for QEMU driver 2010-01-19 11:40:09 +01:00
qemuxml2argvtest.c Rewrite way QEMU PCI addresses are allocated 2010-02-02 16:31:47 +00:00
qemuxml2xmltest.c Rewrite way QEMU PCI addresses are allocated 2010-02-02 16:31:47 +00:00
qparamtest.c build: enable redundant-const check 2009-02-03 13:08:59 +00:00
read-bufsiz qemu: Break out function to check if we can create/define/restore 2009-11-06 10:12:32 -05:00
read-non-seekable Fix up "make check" 2009-10-07 12:18:13 +02:00
reconnect.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
schematestutils.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
secaatest.c sVirt AppArmor security driver 2009-10-08 16:34:22 +02:00
seclabeltest.c Move security drivers to src/security/ 2009-09-21 14:41:44 +01:00
sexpr2xmltest.c Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
start Fix up "make check" 2009-10-07 12:18:13 +02:00
statstest.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
storagepoolschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
storagepoolxml2xmltest.c tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
storagevolschematest Make test suite output less verbose 2010-01-15 16:28:05 +00:00
storagevolxml2xmltest.c tests: Add storage volume XML 2 XML tests. 2009-10-16 10:52:27 -04:00
test_conf.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
test-lib.sh Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutils.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutils.h Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutilsqemu.c Make test suite output less verbose 2010-01-15 16:28:05 +00:00
testutilsqemu.h remove all trailing blank lines 2009-07-16 15:06:42 +02:00
testutilsxen.c Fix crashes in Xen capabilities code 2009-07-27 16:45:01 +01:00
testutilsxen.h remove all trailing blank lines 2009-07-16 15:06:42 +02:00
undefine Fix up "make check" 2009-10-07 12:18:13 +02:00
vcpupin Fix up "make check" 2009-10-07 12:18:13 +02:00
virsh-all Make test suite output less verbose 2010-01-15 16:28:05 +00:00
virsh-synopsis Fix up "make check" 2009-10-07 12:18:13 +02:00
virshtest.c avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
virt-aa-helper-test Fix virt-aa-helper when host and os.type arch differ 2009-11-13 11:04:23 +01:00
vmx2xmltest.c esx: Stop passing around virConnectPtr for error reporting 2010-01-26 01:19:23 +01:00
xencapstest.c Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
xmconfigtest.c Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
xml2sexprtest.c Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
xml2vmxtest.c esx: Stop passing around virConnectPtr for error reporting 2010-01-26 01:19:23 +01:00