]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Add domain type checking
authorMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 11 Jul 2011 17:29:09 +0000 (19:29 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 11 Jul 2011 17:38:51 +0000 (19:38 +0200)
commitaa14709a4771924fdd880eecba46417c61736cc8
treeede0da4df6775d634942ce48f84b9c6429b116c0
parent7518ad753fbad5ab0991b7bb189a69db0975c6e8
Add domain type checking

The drivers were accepting domain configs without checking if those
were actually meant for them. For example the LXC driver happily
accepts configs with type QEMU.

Add a check for the expected domain types to the virDomainDefParse*
functions.
26 files changed:
src/conf/domain_conf.c
src/conf/domain_conf.h
src/esx/esx_driver.c
src/libxl/libxl_driver.c
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c
src/openvz/openvz_driver.c
src/phyp/phyp_driver.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/security/virt-aa-helper.c
src/test/test_driver.c
src/uml/uml_driver.c
src/vbox/vbox_tmpl.c
src/vmware/vmware_driver.c
src/xen/xen_driver.c
src/xen/xend_internal.c
src/xen/xm_internal.c
src/xenapi/xenapi_driver.c
tests/define-dev-segfault
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c
tests/xmconfigtest.c
tests/xml2sexprtest.c
tests/xml2vmxtest.c