]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: open secondary drivers via remote driver if needed
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 5 Jul 2019 08:58:34 +0000 (09:58 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Aug 2019 13:06:31 +0000 (14:06 +0100)
commit463629559d4e534793e69ad84065ab4babc9c021
tree27e1986247daa266ac4af568e95b40f81dc55007
parent76d5208b216af9f1e65e2f0e7bac16811338900d
remote: open secondary drivers via remote driver if needed

When the client has a connection to one of the hypervisor specific
daemons (eg virtqemud), the app may still expect to use the secondary
driver APIs (storage, network, etc). None of these will be registered in
the hypervisor daemon, so we must explicitly open a connection to each
of the daemons for the secondary drivers we need.

We don't want to open these secondary driver connections at the same
time as the primary connection is opened though. That would mean that
establishing a connection to virtqemud would immediately trigger
activation of virtnetworkd, virnwfilterd, etc despite that that these
drivers may never be used by the app.

Thus we only open the secondary driver connections at time of first use
by an API call.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_daemon.h
src/remote/remote_daemon_dispatch.c