]> git.ipfire.org Git - thirdparty/libvirt.git/commit
driver: allow override of connection for secondary drivers
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 13 Feb 2018 10:08:00 +0000 (10:08 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 19 Feb 2018 11:11:46 +0000 (11:11 +0000)
commit70854ea3bcc69f19f5bcbf6183cf056798ed3366
tree584b48970171b713e88603da5b7db8c8d0e9a126
parentfb0db76a47d0ce66b7fe11f88fee53dcdfbe6f12
driver: allow override of connection for secondary drivers

When the test suite is running, we don't want to be triggering the
startup of daemons for the secondary drivers. Thus we must provide a way
to set a custom connection for the secondary drivers, to override the
default logic which opens a new connection.

This will also be useful for code where we have a whole set of separate
functions calls all needing the secret driver. Currently the connection
to the secret driver is opened & closed many times in quick
succession. This will allow us to pre-open a connection temporarily,
improving the performance of startup.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/driver.c
src/driver.h
src/libvirt_private.syms