libvirt/tests
Daniel P. Berrange d78554d884 Specify bus/unit instead of index for disks with QEMU
The current code for using -drive simply sets the -drive 'index'
parameter. QEMU internally converts this to bus/unit depending
on the type of drive. This does not give us precise control over
the bus/unit assignment though. This change switches over to make
libvirt explicitly calculate the bus/unit number.

In addition bus/unit/index are actually irrelevant for VirtIO
disks, since each virtio disk is a separate PCI device. No disk
controller is involved.

Doing the conversion to bus/unit in libvirt allows us to correctly
attach SCSI controllers when required.

* src/qemu/qemu_conf.c: Specify bus/unit instead of index for
  disks
* tests/qemuxml2argvdata/qemuxml2argv-disk*.args: Switch over from
  using index=NNNN, to bus=NN, unit=NN for SCSI/IDE/Floppy disks
2010-01-15 17:55:59 +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 Add netcf XML schemas and test data 2009-07-15 20:16:36 +02: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 Add qemu -help test data for qemu-kvm-0.11.0-rc2 2009-09-10 12:37:35 +01:00
qemuxml2argvdata Specify bus/unit instead of index for disks with QEMU 2010-01-15 17:55:59 +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: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +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 Tests for interface type/model configuration 2009-12-04 17:01:34 +01:00
xml2vmxdata esx: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +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 Make test suite output less verbose 2010-01-15 16:28:05 +00: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 tests: Centralize VIR_TEST_DEBUG lookup, and document it 2009-10-20 14:17:34 -04: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 Distribute vmx2xml and xml2vmx test data files 2009-12-28 14:27:45 +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 avoid calling exit with a constant; use EXIT_* instead 2009-12-15 17:46:04 +01:00
qemuhelptest.c qemu: Always enable the virtio balloon driver 2010-01-06 18:01:51 +01:00
qemuxml2argvtest.c Make QEMU driver use -chardev everywhere if available 2009-12-14 10:38:44 +01:00
qemuxml2xmltest.c Set default disk controller/bus/unit props 2010-01-15 16:38:29 +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: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +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: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +01:00