]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: support netdevs from <forward mode='hostdev'> networks
authorShradha Shah <sshah@solarflare.com>
Thu, 16 Aug 2012 15:42:48 +0000 (16:42 +0100)
committerLaine Stump <laine@laine.org>
Fri, 17 Aug 2012 19:43:26 +0000 (15:43 -0400)
commit1610b71a96a4d906e3d8db5140f6ca9f659f20e3
treedb881183e6b05aad36fb9d271cd9334074f01a39
parenta818f8cfb6bc5aff8a179545cfaa99092dbc4149
qemu: support netdevs from <forward mode='hostdev'> networks

For network devices allocated from a network with <forward
mode='hostdev'>, there is a need to add the newly minted hostdev to
the hostdevs array.

In this case we also need to call qemuPrepareHostDevices just for this
one device, as the standard call to initialize all the hostdevs that
were defined directly in the domain's configuration has already been
made by the time we allocate a device from a libvirt network, and thus
have something that needs initializing.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
src/qemu/qemu_command.c