]> xenbits.xensource.com Git - libvirt.git/commit
qemu: support live update of an interface's filter
authorLaine Stump <laine@laine.org>
Mon, 12 Nov 2012 16:21:10 +0000 (11:21 -0500)
committerLaine Stump <laine@laine.org>
Mon, 3 Dec 2012 19:35:58 +0000 (14:35 -0500)
commit258fb278f2f63953cb991172b27bb8efc96b3f7d
treeea1818b91228d30361d5fc24053bc5039eb717aa
parentab4139a4932aecef09bcac1d8764938b047bcfc6
qemu: support live update of an interface's filter

Since we can't (currently) rely on the ability to provide blanket
support for all possible network changes by calling the toplevel
netdev hostside disconnect/connect functions (due to qemu only
supporting a lockstep between initialization of host side and guest
side of devices), in order to support live change of an interface's
nwfilter we need to make a special purpose function to only call the
nwfilter teardown and setup functions if the filter for an interface
(or its parameters) changes. The pattern is nearly identical to that
used to change the bridge that an interface is connected to.

This patch was inspired by a request from Guido Winkelmann
<guido@sagersystems.de>, who tested an earlier version.
src/conf/nwfilter_params.c
src/conf/nwfilter_params.h
src/libvirt_private.syms
src/qemu/qemu_hotplug.c