]> xenbits.xensource.com Git - libvirt.git/commit
Implement support for <hostdev caps=net>
authorBogdan Purcareata <bogdan.purcareata@freescale.com>
Fri, 5 Apr 2013 12:26:40 +0000 (08:26 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 8 Apr 2013 16:40:08 +0000 (17:40 +0100)
commit442d6a0527311a2ad9b723b22fc7ec90c42f6bc6
treedca8d08040b11d28240977afb6c551aa172e0570
parent4aafa1ff86e25376589dc5caa41510ab60949d04
Implement support for <hostdev caps=net>

This allows a container-type domain to have exclusive access to one of
the host's NICs.

Wire <hostdev caps=net> with the lxc_controller - when moving the newly
created veth devices into a new namespace, also look for any hostdev
devices that should be moved. Note: once the container domain has been
destroyed, there is no code that moves the interfaces back to the
original namespace. This does happen, though, probably due to default
cleanup on namespace destruction.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
src/lxc/lxc_container.c
src/lxc/lxc_controller.c
src/lxc/lxc_hostdev.c
tests/lxcxml2xmldata/lxc-hostdev.xml