]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: extract logic for probing for modular daemons
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 24 May 2021 16:10:05 +0000 (17:10 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 18 Jun 2021 15:19:42 +0000 (16:19 +0100)
commit191b3b81b10369ae539525f6827fe1b9c31f4aab
tree46aded2f543935b213b05663745f7b20b7ae78e8
parentce410b6ea9dee6916e76e72e3c2c77f25ba42f84
remote: extract logic for probing for modular daemons

When virtproxyd gets a NULL URI, it needs to implement probing logic
similar to that found in virConnectOpen. The latter can't be used
directly since it relied on directly calling into the internal drivers
in libvirtd. virtproxyd approximates this behaviour by looking to see
what modular daemon sockets exist, or what daemon binaries are installed.

This same logic is also going to be needed when the regular libvirt
remote client switches to prefer modular daemons by default, as we
don't want to continue spawning libvirtd going forward.

Tested-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_remote.syms
src/remote/remote_daemon_dispatch.c
src/remote/remote_sockets.c
src/remote/remote_sockets.h