From: Markus Armbruster <armbru@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org
Subject: Re: [Qemu-devel] qapi: Stop abusing "special" values for something entirely different
Date: Tue, 18 Jul 2017 17:42:30 +0200 [thread overview]
Message-ID: <87o9shrbtl.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <1229e9b6-d675-ee15-ce98-6ee85a4f421b@redhat.com> (Eric Blake's message of "Fri, 14 Jul 2017 12:38:50 -0500")
Eric Blake <eblake@redhat.com> writes:
> On 07/14/2017 12:12 PM, Markus Armbruster wrote:
>>
>> Instead of the last part, I prefer either
>>
>> * so we add a *new* value, such as JSON null.
>
> I like that idea.
>
>>
>> 1. Stop abusing values the schema accepts, but are invalid to mean "do
>> something else entirely".
>>
>> 2. Add a first class null type to QAPI.
>>
>> 3. Turn MigrationParameters members tls-creds and tls-hostname into
>> alternate of str and null. Deprecate "".
>>
>> 4. Add a null member to alternate BlockdefRef. Deprecate "".
>
> Back-compat concerns: would we still accept "" in place of null for a
> release or two?
Yes.
> Is it time to figure out how to add deprecation
> notices/events to QMP?
Yes, getting that in the next development cycle would be nice.
> Or would this be a clean break-over point (since
> introspection exists), where if introspection shows there is an
> alternate between string and null, then libvirt MUST use null instead of
> "" to get the desired semantics?
Feels unnecessarily harsh to me.
>> I got patches for 2., and I intend to work on 3. and 4.
>>
>> Since this is "only" about "less than general and ugly", we may decide
>> to leave things as they are if my patches turn out even uglier.
>>
>> Meanwhile, opinions?
>
> Not much time left for soft freeze (which kind of echoes the dilemma we
> had at 2.9). Is this something you are aiming for in 2.10, or will it
> be all the harder to worry about back-compat (because we'll have two
> releases rather than one before we introduce the alternate-with-null
> semantics)?
Let's try to get it into 2.10.
next prev parent reply other threads:[~2017-07-18 15:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 17:12 [Qemu-devel] qapi: Stop abusing "special" values for something entirely different Markus Armbruster
2017-07-14 17:38 ` Eric Blake
2017-07-18 15:42 ` Markus Armbruster [this message]
2017-07-17 9:02 ` Daniel P. Berrange
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=87o9shrbtl.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--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.