[Spice-devel] [PATCH 0/6] Add new libspice-server.so APIs for injecting client sockets

Alon Levy alevy at redhat.com
Sun Oct 23 01:32:10 PDT 2011


On Fri, Oct 21, 2011 at 04:10:58PM +0100, Daniel P. Berrange wrote:
> QEMU has a monitor command 'add_client' which can be used over
> a UNIX domain socket connection with SCM_RIGHTS, to pass a
> pre-opened client socket connection FD for graphics displays.
> This series adds two new APIs for libspice-server.so which
> enable QEMU to wire up this monitor command for SPICE, as
> well as VNC.
> 
> libvirt in turn exposes the QEMU monitor command via a new
> virDomainOpenConsole API. Finally virt-viewer can use this
> libvirt API to connect to VNC/SPICE, by passing across one
> end of a socketpair. The benefit of this approach, over just
> connecting to the TCP/UNIX server socket of QEMU directly
> are multiple. The TCP socket may have authenticatin enabled,
> which is redundant if libvirt is authenticating clients
> invoking virDomainOpenConsole. The UNIX socket may not be
> accessible by the virt-viewer application, while it can
> access libvirt.
> 

Looks good. Just one thing - is this supposed to get into RHEL at some
point? since there the 0.8 branch is used, this will need to be
backported to 0.8. The code there is different enough that it will be
some work.

> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list