]> xenbits.xensource.com Git - libvirt.git/commitdiff
remoteDispatchConnectOpen: Fix check for 'BHYVE' connection type
authoraokblast <aokblast@FreeBSD.org>
Tue, 12 Mar 2024 23:00:26 +0000 (07:00 +0800)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Aug 2024 16:23:10 +0000 (18:23 +0200)
'bhyveConnectGetType' (which is called from 'virConnectGetType') returns
'BHYVE' as the type, but the code in 'remoteDispatchConnectOpen'
responsible for selecting the sub-driver URIs in modular deployment
checks for 'bhyve' and thus would not properly fill the URIs to the
sub-daemons.

Signed-off-by: aokblast <aokblast@FreeBSD.org>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/remote/remote_daemon_dispatch.c

index cfffb40095544a70cb29199904a179110e761fda..e812f5c3e94d4cbb87c11472e7e5a5de889a45c5 100644 (file)
@@ -2108,7 +2108,7 @@ remoteDispatchConnectOpen(virNetServer *server G_GNUC_UNUSED,
         STREQ(type, "Xen") ||
         STREQ(type, "LXC") ||
         STREQ(type, "VBOX") ||
-        STREQ(type, "bhyve") ||
+        STREQ(type, "BHYVE") ||
         STREQ(type, "vz") ||
         STREQ(type, "Parallels") ||
         STREQ(type, "CH")) {