All of lore.kernel.org
 help / color / mirror / Atom feed
* Who / what uses QMP command add_client?
@ 2022-11-29 14:54 Markus Armbruster
  2022-11-29 15:07 ` Daniel P. Berrangé
  2022-11-29 15:26 ` Marc-André Lureau
  0 siblings, 2 replies; 7+ messages in thread
From: Markus Armbruster @ 2022-11-29 14:54 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P. Berrangé, Peter Krempa, Marc-André Lureau,
	Gerd Hoffmann

QMP command add_client's schema:

    ##
    # @add_client:
    #
    # Allow client connections for VNC, Spice and socket based
    # character devices to be passed in to QEMU via SCM_RIGHTS.
    #
    # @protocol: protocol name. Valid names are "vnc", "spice", "@dbus-display" or
    #            the name of a character device (eg. from -chardev id=XXXX)
    #
    # @fdname: file descriptor name previously passed via 'getfd' command
    #
    # @skipauth: whether to skip authentication. Only applies
    #            to "vnc" and "spice" protocols
    #
    # @tls: whether to perform TLS. Only applies to the "spice"
    #       protocol
    #
    # Returns: nothing on success.
    #
    # Since: 0.14
    #
    # Example:
    #
    # -> { "execute": "add_client", "arguments": { "protocol": "vnc",
    #                                              "fdname": "myclient" } }
    # <- { "return": {} }
    #
    ##
    { 'command': 'add_client',
      'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool',
                '*tls': 'bool' } }

Spot the design flaw!

It's overloaded @protocol.  Two issues.

One, character device IDs "vnc", "spice", "@dbus-display" don't work
here.  If we ever add another protocol, we make another device ID not
work.  Perhaps this is why Marc-André chose "@dbus-display", which
otherwise looks like a typo :)

Two, introspection can't tell us what protocols are supported.

As far as I can tell, libvirt does not use this with character devices.
It does use the other three protocols.

Are there any known uses with character devices?

If not, any ideas why one would want to use the command with character
devices?



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-30 13:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-29 14:54 Who / what uses QMP command add_client? Markus Armbruster
2022-11-29 15:07 ` Daniel P. Berrangé
2022-11-30 12:30   ` Markus Armbruster
2022-11-30 13:20     ` Daniel P. Berrangé
2022-11-30 13:51       ` Markus Armbruster
2022-11-29 15:26 ` Marc-André Lureau
2022-11-30 12:43   ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.