[Spice-devel] [PATCH 0/6] RFC: add "spiceport" chardev

Marc-André Lureau marcandre.lureau at gmail.com
Fri Nov 30 05:25:41 PST 2012


Hi,

Add a new chardev to allow arbitrary communication between the
host and the Spice client (via the spice server).

Note: the related Spice protocol and server patches are in review,
this patch series serves as a RFC for the reviewers. Except the first
3 patches, the spice dependencies will need to be bump to the upcoming
protocol and server releases.

Some examples:

This allows the Spice client to have a special port for the qemu
monitor:

... -chardev spiceport,name=org.qemu.monitor,id=monitorport
    -mon chardev=monitorport

Or to allow arbitrary communication outside of qemu:

... -chardev spiceport,name=org.ovirt.controller,id=...,chardev=ovcsocket
    -chardev socket,server,host=0.0.0.0,port=4242,id=ovcsocket,nowait

Marc-André Lureau (6):
  qemu-char: add qemu_chr_remove_clients()
  spice-qemu-char: write to chardev whatever amount it can read
  spice-qemu-char: factor out CharDriverState creation
  spice-qemu-char: add spiceport chardev
  spice-qemu-char: keep a list of spice chardev
  spice-qemu-char: register spicevmc ports during qemu_spice_init()

 qemu-char.c       |  29 ++++++--
 qemu-char.h       |   2 +
 qemu-config.c     |   3 +
 qemu-options.hx   |  14 ++++
 spice-qemu-char.c | 195 +++++++++++++++++++++++++++++++++++++++++++++++++-----
 trace-events      |   3 +
 ui/qemu-spice.h   |   2 +
 ui/spice-core.c   |   2 +
 8 files changed, 229 insertions(+), 21 deletions(-)

-- 
1.7.11.7



More information about the Spice-devel mailing list