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

Daniel P. Berrange berrange at redhat.com
Fri Oct 21 08:10:58 PDT 2011


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.



More information about the Spice-devel mailing list