<br><tt><font size=2>libvir-list-bounces@redhat.com wrote on 08/16/2010
12:09:48 PM:<br>
<br>
<br>
> Please respond to "Daniel P. Berrange"</font></tt>
<br><tt><font size=2>> <br>
> On Fri, Aug 13, 2010 at 04:36:32PM -0400, Stefan Berger wrote:<br>
> > <br>
> > <br>
> > This time with a proper title.<br>
> > <br>
> > v3:<br>
> >     - Fixed an indentation problem<br>
> > <br>
> >     - added bool parameter to function terminating
the IP address <br>
> > learner threads to determine whether future threads may still
run <br>
> > (needed in case of driver reload) or all must terminate (need
in case of <br>
> > libvirtd termination)<br>
> > <br>
> > v2:<br>
> > <br>
> >     - Fixes to the nwfilter driver reload function
that also needs a <br>
> > valid virConnectPtr.<br>
> > <br>
> > In this patch I am extending and fixing the nwfilter module's
reload <br>
> > support to stop all ongoing threads (for learning IP addresses
of <br>
> > interfaces) and rebuild the filtering rules of all interfaces
of all VMs <br>
> > when libvirt is started. Now libvirtd rebuilds the filters upon
the <br>
> > SIGHUP signal and libvirtd restart.<br>
> > <br>
> > About the patch: The nwfilter functions require a virConnectPtr.
<br>
> > Therefore I am opening a connection in qemudStartup, which later
on <br>
> > needs to be closed outside where the driver lock is held since
otherwise <br>
> > it ends up in a deadlock due to virConnectClose() trying to lock
the <br>
> > driver as well.<br>
> > <br>
> > I have tested this now for a while with several machines running
and <br>
> > needing the IP address learner thread(s). The rebuilding of the
firewall <br>
> > rules seems to work fine following libvirtd restart or a SIGHUP.
Also <br>
> > the termination of libvirtd worked fine.<br>
> > <br>
> > <br>
> > Signed-off-by: Stefan Berger<stefanb@us.ibm.com><br>
> > <br>
[...]<br>
> <br>
> This identation still seems to be wrong - so was the code being<br>
> replaced. ACK aside from that</font></tt>
<br><tt><font size=2>> <br>
> <br>
> Daniel<br>
</font></tt>
<br>
<br><tt><font size=2>Pushed.</font></tt>
<br><tt><font size=2>(This indentation issue must be related to something
Thunderbird 3.1.1 does to emails).</font></tt>
<br>
<br><tt><font size=2> Stefan</font></tt>
<br><tt><font size=2><br>
</font></tt>