]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add qemu-vdagent channel
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 18 Mar 2022 20:51:39 +0000 (15:51 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 10 May 2022 16:00:15 +0000 (11:00 -0500)
commit05b09f039ea6547efc39c2c483dbb68ad5265f13
tree2fea113d53b7a52057c5549f08f7cc1b06cc9dc6
parentf135fdabab8988b895bbece3e743b751099fdeb8
conf: add qemu-vdagent channel

Add the ability to configure a qemu-vdagent in guest domains. This
device is similar to the spice vdagent channel except that qemu handles
the spice-vdagent protocol messages itself rather than routing them over
a spice protocol channel.

The qemu-vdagent device has two notable configuration options which
determine whether qemu will handle particular vdagent features:
'clipboard' and 'mouse'.

The 'clipboard' option allows qemu to synchronize its internal clipboard
manager with the guest clipboard, which enables client<->guest clipboard
synchronization for non-spice guests such as vnc.

The 'mouse' option allows absolute mouse positioning to be sent over the
vdagent channel rather than using a usb or virtio tablet device.

Sample configuration:
  <channel type='qemu-vdagent'>
    <target type='virtio' name='com.redhat.spice.0'/>
    <source>
      <clipboard copypaste='yes'/>
      <mouse mode='client'/>
    </source>
  </channel>

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
12 files changed:
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_validate.c
src/conf/schemas/domaincommon.rng
src/qemu/qemu_command.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c
src/qemu/qemu_validate.c
src/security/security_apparmor.c
src/security/security_dac.c
tests/testutilsqemu.c