[libvirt] [PATCH] Allow libvirtd to RPC to external libvirtd.

Chris Lalancette clalance at redhat.com
Fri Aug 7 09:06:31 UTC 2009


Allow the daemon itself to make RPCs to an external libvirtd, but only if
the URI is fully specified.  While this isn't used at the moment, it will
be for the tunnelled migration support in the future.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
---
 src/remote_internal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/remote_internal.c b/src/remote_internal.c
index bc69c70..a416cf3 100644
--- a/src/remote_internal.c
+++ b/src/remote_internal.c
@@ -1001,7 +1001,7 @@ remoteOpen (virConnectPtr conn,
     int ret, rflags = 0;
     const char *autostart = getenv("LIBVIRT_AUTOSTART");
 
-    if (inside_daemon)
+    if (inside_daemon && (!conn->uri || (conn->uri && !conn->uri->server)))
         return VIR_DRV_OPEN_DECLINED;
 
     if (!(priv = remoteAllocPrivateData(conn)))
-- 
1.6.0.6




More information about the libvir-list mailing list