]> xenbits.xensource.com Git - libvirt.git/commit
enhance hostdev mode 'capabilities' process
authorJincheng Miao <jmiao@redhat.com>
Wed, 25 Jun 2014 06:45:59 +0000 (14:45 +0800)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 25 Jun 2014 16:19:11 +0000 (18:19 +0200)
commit01e508f33c3b94bafe3e266bfd45b070fae8c8c0
tree171191e7b2f73c297c5e89f80ca322f3309f5312
parent9a39f504209c24d559fc201a327103aa3b5fe091
enhance hostdev mode 'capabilities' process

Currently, only LXC has hostdev mode 'capabilities' support,
so the other drivers should forbid to define it in XML.
The hostdev mode check is added to devicesPostParseCallback()
for each hypervisor driver.

But there are some drivers lack function devicesPostParseCallback(),
so only add check for qemu, libxl, openvz, uml, xen, xenapi.

Signed-off-by: Jincheng Miao <jmiao@redhat.com>
src/libxl/libxl_domain.c
src/openvz/openvz_driver.c
src/qemu/qemu_domain.c
src/uml/uml_driver.c
src/xen/xen_driver.c
src/xenapi/xenapi_driver.c