[libvirt] [PATCH v3] nwfilter:

Eric Blake eblake at redhat.com
Fri Aug 13 20:44:38 UTC 2010


Incomplete subject line?  It used to be
 nwfilter: extend nwfilter reload support

On 08/13/2010 02:29 PM, Stefan Berger wrote:
>  v3:
>     - Fixed an indentation problem
>     - added bool parameter to function terminating the IP address
> learner threads to determine whether future threads may still run
> (needed in case of driver reload) or all must terminate (need in case of
> libvirtd termination)
> 

> +    conn = virConnectOpen("qemu:///system");
> +
> +    if (conn) {
> +        /* shut down all threads -- qemud for example will restart them */
> +        virNWFilterLearnThreadsTerminate(true);
> +
> +        nwfilterDriverLock(driverState);
> +        virNWFilterPoolLoadAllConfigs(conn,
> + &driverState->pools,

Indentation problem still looks like it is here.

> @@ -1912,7 +1926,11 @@ qemudStartup(int privileged) {
>                                  1, NULL, NULL) < 0)
>          goto error;
> 
> -    qemuReconnectDomains(qemu_driver);
> +    conn = virConnectOpen(qemu_driver->privileged ?
> +                          "qemu:///system" :
> +                          "qemu:///session");

How come this one is conditional, but the other one was hard-coded to
system?

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100813/6d0bfd6a/attachment-0001.sig>


More information about the libvir-list mailing list