[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 2/7] ui/vdagent: core infrastructure
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v3 2/7] ui/vdagent: core infrastructure |
Date: |
Fri, 26 Mar 2021 15:56:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Gerd Hoffmann <kraxel@redhat.com> writes:
> The vdagent protocol allows the guest agent (spice-vdagent) and the
> spice client exchange messages to implement features which require
> guest cooperation, for example clipboard support.
>
> This is a qemu implementation of the spice client side. This allows
> the spice guest agent talk to qemu directly when not using the spice
> protocol.
>
> usage: qemu \
> -chardev vdagent,id=vdagent \
> -device virtserialport,chardev=vdagent,name=com.redhat.spice.0
>
> This patch adds just the protocol basics: initial handshake and
> capability negotiation.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
[...]
> diff --git a/qapi/char.json b/qapi/char.json
> index 6413970fa73b..6e565ce42753 100644
> --- a/qapi/char.json
> +++ b/qapi/char.json
> @@ -390,6 +390,17 @@
> 'data': { '*size': 'int' },
> 'base': 'ChardevCommon' }
>
> +##
> +# @ChardevVDAgent:
> +#
> +# Configuration info for vdagent.
> +#
> +# Since: 6.0
> +##
> +{ 'struct': 'ChardevVDAgent',
> + 'data': { },
> + 'base': 'ChardevCommon' }
ChardevVDAgent isn't strictly needed (it's identical to ChardevBackend),
but it may make the code easier to read or easier to change. Okay.
Does it miss "'if': 'defined(CONFIG_SPICE)'"?
> +
> ##
> # @ChardevBackend:
> #
> @@ -417,6 +428,8 @@
> 'if': 'defined(CONFIG_SPICE)' },
> 'spiceport': { 'type': 'ChardevSpicePort',
> 'if': 'defined(CONFIG_SPICE)' },
> + 'vdagent': { 'type': 'ChardevVDAgent',
> + 'if': 'defined(CONFIG_SPICE)' },
> 'vc': 'ChardevVC',
> 'ringbuf': 'ChardevRingbuf',
> # next one is just for compatibility
- [PATCH v3 0/7] ui: add vdagent implementation and clipboard support., Gerd Hoffmann, 2021/03/26
- [PATCH v3 1/7] ui: add clipboard infrastructure, Gerd Hoffmann, 2021/03/26
- [PATCH v3 2/7] ui/vdagent: core infrastructure, Gerd Hoffmann, 2021/03/26
- [PATCH v3 5/7] ui/vnc: clipboard support, Gerd Hoffmann, 2021/03/26
- [PATCH v3 7/7] ui/gtk: add clipboard support, Gerd Hoffmann, 2021/03/26
- [PATCH v3 6/7] ui/gtk: move struct GtkDisplayState to ui/gtk.h, Gerd Hoffmann, 2021/03/26
- [PATCH v3 4/7] ui/vdagent: add clipboard support, Gerd Hoffmann, 2021/03/26
- [PATCH v3 3/7] ui/vdagent: add mouse support, Gerd Hoffmann, 2021/03/26
- Re: [PATCH v3 0/7] ui: add vdagent implementation and clipboard support., no-reply, 2021/03/26