1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-27 07:22:07 +03:00
libvirt/tests
Mark McLoughlin 73c901a807 Take domain type into account when looking up default machine
If one has e.g.

  <guest>
    <os_type>hvm</os_type>
    <arch name='x86_64'>
      <wordsize>64</wordsize>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <machine>pc-0.11</machine>
      <machine canonical='pc-0.11'>pc</machine>
      <machine>pc-0.10</machine>
      <machine>isapc</machine>
      <domain type='qemu'>
      </domain>
      <domain type='kvm'>
        <emulator>/usr/bin/kvm</emulator>
        <machine>pc</machine>
        <machine>isapc</machine>
      </domain>
    </arch>
  </guest>

and start a guest with:

  <domain type='kvm'>
    ...
    <os>
      <type arch='x86_64'>hvm</type>
      ...
    </os>
  </domain>

then the default machine type should be 'pc' and not 'pc-0.11'

Issue was reported by Anton Protopopov.

* src/capabilities.[ch]: pass the domain type to
  virCapabilitiesDefaultGuestArch() and use it to look up the default
  machine type from a specific guest domain if needed.

* src/conf/domain_conf.c, src/xen/xm_internal.c: update

* tests/qemuxml2argvdata/qemuxml2argv-machine-aliases2.xml: update
  the domain type to 'kvm' and remove the machine type to check
  that the default gets looked up correctly
2009-10-12 10:57:35 +01: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
networkschemadata network: add 'bootp' and 'tftp' config 2009-09-23 09:47:10 +02:00
nodedevschemadata remove all trailing blank lines 2009-07-16 15:06:42 +02: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 Take domain type into account when looking up default machine 2009-10-12 10:57:35 +01:00
sexpr2xmldata Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
storagepoolschemadata remove all trailing blank lines 2009-07-16 15:06:42 +02:00
storagevolschemadata Attach encryption information to virStorageVolDef. 2009-09-01 18:27:38 +01:00
vmx2xmldata ESX add esxDomainDefineXML() 2009-09-23 15:00:54 +02:00
xencapsdata remove all trailing blank lines 2009-07-16 15:06:42 +02:00
xmconfigdata remove all .cvsignore files 2009-07-08 16:17:51 +02:00
xml2sexprdata Don't blindly reorder disk drives 2009-09-02 15:19:34 +01:00
xml2vmxdata ESX add esxDomainDefineXML() 2009-09-23 15:00:54 +02:00
.gitignore ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
.valgrind.supp Fix bogus valgrind memory leak warnings in test suite 2009-01-28 21:53:48 +00:00
capabilityschematest Added complete set of RNG schemas for all XML formats 2009-01-27 15:29:53 +00:00
conftest.c extend the configuration parser for VMX syntax 2009-06-19 12:34:30 +00:00
cpuset Fix up "make check" 2009-10-07 12:18:13 +02:00
daemon-conf Fix up "make check" 2009-10-07 12:18:13 +02:00
define-dev-segfault Fix up "make check" 2009-10-07 12:18:13 +02:00
domainschematest Added complete set of RNG schemas for all XML formats 2009-01-27 15:29:53 +00:00
esxutilstest.c ESX add esxDomainDefineXML() 2009-09-23 15:00:54 +02:00
eventtest.c Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
int-overflow Fix up "make check" 2009-10-07 12:18:13 +02:00
interfaceschematest netcf XML validation and input and output tests 2009-07-15 20:16:36 +02:00
interfacexml2xmltest.c netcf XML validation and input and output tests 2009-07-15 20:16:36 +02: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 sVirt AppArmor security driver 2009-10-08 16:34:22 +02:00
networkschematest network: add 'bootp' and 'tftp' config 2009-09-23 09:47:10 +02:00
nodedevschematest Added complete set of RNG schemas for all XML formats 2009-01-27 15:29:53 +00:00
nodedevxml2xmltest.c NPIV implementation for node device create and destroy 2009-06-02 15:12:53 +00:00
nodeinfotest.c remove all trailing blank lines 2009-07-16 15:06:42 +02: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 Move QEMU driver to src/qemu/ 2009-09-21 14:41:43 +01:00
qemuhelptest.c Move QEMU driver to src/qemu/ 2009-09-21 14:41:43 +01:00
qemuxml2argvtest.c Fix handling of Xen(ner) detection 2009-09-22 16:13:33 +01:00
qemuxml2xmltest.c Move QEMU driver to src/qemu/ 2009-09-21 14:41:43 +01:00
qparamtest.c build: enable redundant-const check 2009-02-03 13:08:59 +00:00
read-bufsiz Fix up "make check" 2009-10-07 12:18:13 +02:00
read-non-seekable Fix up "make check" 2009-10-07 12:18:13 +02:00
reconnect.c remove all trailing blank lines 2009-07-16 15:06:42 +02: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 Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
start Fix up "make check" 2009-10-07 12:18:13 +02:00
statstest.c Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
storagepoolschematest Added complete set of RNG schemas for all XML formats 2009-01-27 15:29:53 +00:00
storagevolschematest Added complete set of RNG schemas for all XML formats 2009-01-27 15:29:53 +00:00
test_conf.sh Fix up "make check" 2009-10-07 12:18:13 +02:00
test-lib.sh Don't fail to read a file because it's non-seekable (e.g., a pipe). 2008-04-08 15:33:16 +00:00
testutils.c Dump qemu driver capabilities if test debugging enabled 2009-09-10 12:37:42 +01:00
testutils.h Dump qemu driver capabilities if test debugging enabled 2009-09-10 12:37:42 +01:00
testutilsqemu.c Test that domain-specific qemu machine types are used correctly 2009-09-10 12:37:43 +01: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 Fix up "make check" 2009-10-07 12:18:13 +02:00
virsh-synopsis Fix up "make check" 2009-10-07 12:18:13 +02:00
virshtest.c Move example XML files into examples/xml 2009-09-21 14:41:48 +01:00
virt-aa-helper-test sVirt AppArmor security driver 2009-10-08 16:34:22 +02:00
vmx2xmltest.c ESX add esxDomainDefineXML() 2009-09-23 15:00:54 +02:00
xencapstest.c Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
xmconfigtest.c Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
xml2sexprtest.c Move xen driver code into src/xen/ directory 2009-09-21 14:41:42 +01:00
xml2vmxtest.c ESX add esxDomainDefineXML() 2009-09-23 15:00:54 +02:00