From: Eric Blake <eblake@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Anthony Liguori <aliguori@amazon.com>,
Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PULL 09/10] monitor: add query-vnc2 command
Date: Fri, 19 Dec 2014 11:05:16 -0700 [thread overview]
Message-ID: <549468DC.8010102@redhat.com> (raw)
In-Reply-To: <87bnmz3i4u.fsf@blackfin.pond.sub.org>
On 12/19/2014 06:04 AM, Markus Armbruster wrote:
> Gerd Hoffmann <kraxel@redhat.com> writes:
>
>> Add new query vnc qmp command, for the lack of better ideas just name it
>> "query-vnc2". Changes over query-vnc:
>>
>> * It returns a list of vnc servers, so multiple vnc server instances
>> are covered.
>> * Each vnc server returns a list of server sockets. Followup patch
>> will use that to also report websockets. In case we add support for
>> multiple server sockets server sockets (to better support ipv4+ipv6
>> dualstack) we can add them to the list too.
>
> I guess we could shoehorn this into query-vnc by having it return an
> anonymous union and use an optional parameter to select the alternative.
> Too much trouble just to avoid an ugly name.
>
> Call it query-vnc-servers?
Might be a nicer name, indeed.
>> ##
>> +# @VncPriAuth:
>
> I don't personally mind abbreviations, but maybe somebody else does:
> QAPI / QMP tends to spell things out, like VncPrimaryAuthentication.
> Maybe just VncPrimaryAuth, since there's precedence for abbreviating
> authentication that way.
"A rose by any other name would smell as sweet". But I'm okay with
VncPrimaryAuth.
>
> Schema looks good to me otherwise, but I'd like to hear Eric's opinion.
Yes, other than documentation/naming nits, the schema looks fine.
>
> If the schema let us specify the enumeration values, we could avoid the
> mapping altogether.
Ooh, cool thought: what if we allowed:
{ 'enum': 'Foo', 'data': [
{ 'name': 'One', 'value': 1 },
{ 'name': 'Two', 'value': 2 } ] }
as a way to force 1 and 2 (rather than the default of first string in
the list getting 0)? Would we allow aliases, or if you specify a value,
must all names be unique? Would it be C-like semantics where you can
mix and match name-only shorthand with name/values, and where name-only
entries default to one greater than the previous value, starting at 0?
But that's in the same category as future patches that would let us
specify default values - that is, someone has to do the work to add the
extension and enhance the testsuite/documentation to cover it.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
next prev parent reply other threads:[~2014-12-19 18:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 9:04 [Qemu-devel] [PULL 00/10] vnc: add support for multiple vnc displays Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 01/10] vnc: remove vnc_display global Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 02/10] vnc: remove unused DisplayState parameter, add id instead Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 03/10] vnc: add display id to acl names Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 04/10] vnc: switch to QemuOpts, allow multiple servers Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 05/10] vnc: allow binding servers to qemu consoles Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 06/10] vnc: update docs/multiseat.txt Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 07/10] vnc: track & limit connections Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 08/10] vnc: factor out qmp_query_client_list Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 09/10] monitor: add query-vnc2 command Gerd Hoffmann
2014-12-19 13:04 ` Markus Armbruster
2014-12-19 18:05 ` Eric Blake [this message]
2015-01-06 10:39 ` Gerd Hoffmann
2015-01-12 15:53 ` Markus Armbruster
2015-01-06 10:36 ` Gerd Hoffmann
2015-01-08 15:44 ` Gerd Hoffmann
2014-12-19 9:04 ` [Qemu-devel] [PULL 10/10] monitor: add vnc websockets Gerd Hoffmann
2014-12-19 13:06 ` Markus Armbruster
2014-12-19 18:09 ` Eric Blake
2014-12-19 12:51 ` [Qemu-devel] [PULL 00/10] vnc: add support for multiple vnc displays Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=549468DC.8010102@redhat.com \
--to=eblake@redhat.com \
--cc=aliguori@amazon.com \
--cc=armbru@redhat.com \
--cc=kraxel@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.