Skip to content

ui: add vdagent implementation and clipboard support.

Gerd Hoffmann qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 4 repliesIn review
  2. v59 patches 3 repliesSuperseded
  3. v49 patches 12 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches3 repliesSuperseded
v27 patches11 repliesSuperseded
v17 patches11 repliesSuperseded

Changes in v6 from the cover letter

- rebase to latest master
- avoid busy-loop when writing to chardev.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9build: add separate spice-protocol config optionconfigure meson.build+36 -40 replies
2/9ui: add clipboard infrastructureinclude/ui/clipboard.h ui/clipboard.c ui/meson.build+155 -00 replies
3/9ui: add clipboard documentationdocs/devel/index.rst docs/devel/ui.rst include/ui/clipboard.h+141 -10 replies
4/9ui/vdagent: core infrastructureqapi/char.json ui/meson.build ui/trace-events +1 more+386 -11 reply
5/9ui/vdagent: add mouse supportchardev/char.c qapi/char.json ui/vdagent.c+155 -11 reply
6/9ui/vdagent: add clipboard supportchardev/char.c qapi/char.json ui/trace-events +1 more+301 -11 reply
7/9ui/vnc: clipboard supportui/meson.build ui/vnc-clipboard.c ui/vnc.c +1 more+363 -60 replies
8/9ui/gtk: move struct GtkDisplayState to ui/gtk.hinclude/ui/gtk.h ui/gtk.c+57 -550 replies
9/9ui/gtk: add clipboard supportinclude/ui/gtk.h ui/gtk-clipboard.c ui/gtk.c +1 more+204 -11 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauMarkus Armbruster
1/9R-b
2/9R-b
3/9R-b
4/9R-b A-b
5/9R-b A-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/9] ui: add vdagent implementation and clipboard support.

Fist sketch of cut+paste support for vnc. On the guest side we are going to reuse the spice vdagent, so things should work out-of-the-box with guests in the wild. So this patch set brings a qemu implemenation of the vdagent protocol.

Beside that there is the clipboard infrastructure of course. For now only text support is there. The design allows adding more data types, so we can add image support and maybe more later on. So far vdagent, vnc server and gtk ui are hooked up.

Usage: qemu \
-chardev vdagent,id=vdagent,clipboard=on \
-device virtio-serial-pci \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0

v6:
- rebase to latest master
- avoid busy-loop when writing to chardev.
v5:
- use error_report.
- error out on bigendian hosts.
- rename chardev to 'qemu-vdagent'.
- misc minor tweaks.
v4:
- rebase to latest master.
- make spice-protocol a separate build dependency.
- update qapi version annotation.
- add documentatin for qemu clipboard.
- misc little tweaks.
v3:
- support agents without VD_AGENT_CAP_CLIPBOARD_SELECTION.
- properly parse chunked messages.
- test with windows guests, minor fixes.
- set display_id for agent mouse events.
v2:
- add a bunch of sanity checks.
- add proper chunking.
- use autofree.

Gerd Hoffmann (9):
build: add separate spice-protocol config option
ui: add clipboard infrastructure
ui: add clipboard documentation ui/vdagent: core infrastructure ui/vdagent: add mouse support ui/vdagent: add clipboard support ui/vnc: clipboard support
ui/gtk: move struct GtkDisplayState to ui/gtk.h ui/gtk: add clipboard support

 configure              |  36 +-
 include/ui/clipboard.h | 193 ++++++++++
 include/ui/gtk.h       |  67 ++++
 ui/vnc.h               |  24 ++
 chardev/char.c         |   6 +
 ui/clipboard.c         |  92 +++++
 ui/gtk-clipboard.c     | 192 ++++++++++
 ui/gtk.c               |  56 +--
 ui/vdagent.c           | 803 +++++++++++++++++++++++++++++++++++++++++
 ui/vnc-clipboard.c     | 323 +++++++++++++++++
 ui/vnc.c               |  21 +-
 docs/devel/index.rst   |   1 +
 docs/devel/ui.rst      |   8 +
 meson.build            |   4 +
 qapi/char.json         |  21 +-
 ui/meson.build         |   5 +-
 ui/trace-events        |  10 +
 17 files changed, 1795 insertions(+), 67 deletions(-)
 create mode 100644 include/ui/clipboard.h
 create mode 100644 ui/clipboard.c
 create mode 100644 ui/gtk-clipboard.c
 create mode 100644 ui/vdagent.c
 create mode 100644 ui/vnc-clipboard.c
 create mode 100644 docs/devel/ui.rst
Signature · 1 line
2.31.1