From: Eric Blake <eblake@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
Fam Zheng <famz@redhat.com>,
Michael Roth <mdroth@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>,
akong@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 2/2] qapi: Allow setting default values for optional parameters
Date: Mon, 05 May 2014 09:13:22 -0600 [thread overview]
Message-ID: <5367AA92.1090905@redhat.com> (raw)
In-Reply-To: <87iopktuy8.fsf@blackfin.pond.sub.org>
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
On 05/05/2014 03:51 AM, Markus Armbruster wrote:
>> Also, is the default value allowed to change between qemu versions?
>> What are the back-compat ramifications if two different releases want to
>> tweak an omitted variable to different defaults? The documentation
>> should mention the rule of thumb that we plan on enforcing during
>> reviews. I could go either way: the wire format is unimpacted by what
>> default value is used when an argument is omitted, and management can
>> always explicitly specify a parameter if they don't trust the default;
>> on the other hand, if changing a default changes visible behavior, then
>> we have not maintained ABI compatibility.
>
> We should use common sense.
>
> Changing the schema in a way that alters the meaning of existing usage
> is a no-no, and that applies to defaults as much as to anything else.
> But not every change of a default necessarily does that. Contrieved
> example: if the value defines a buffer size, and it's specified to
> default to a sensible size, then we can and should let the default value
> evolve along with our idea of what a sensible size is.
I agree - it's more important to declare that we are maintaining
documented semantics (omitting the parameter will always pick the best
size, even if that size differs over time) than precise values (omitting
the parameter will always pick 512 bytes, even if that is not the ideal
size for newer versions) - so it is somewhat a documentation game of
whether we document default values well enough to let them be flexible :)
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-05-05 15:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1398764656-27534-1-git-send-email-famz@redhat.com>
[not found] ` <1398764656-27534-2-git-send-email-famz@redhat.com>
[not found] ` <535F9E40.8010407@redhat.com>
2014-05-05 8:33 ` [Qemu-devel] [PATCH v2 1/2] qapi: Allow decimal values Markus Armbruster
[not found] ` <1398764656-27534-3-git-send-email-famz@redhat.com>
[not found] ` <20140429112436.GE4835@noname.str.redhat.com>
[not found] ` <535FA06F.2060603@redhat.com>
2014-05-04 3:14 ` [Qemu-devel] [PATCH v2 2/2] qapi: Allow setting default values for optional parameters Fam Zheng
2014-05-05 9:51 ` Markus Armbruster
2014-05-05 15:13 ` Eric Blake [this message]
2014-05-05 11:06 ` Markus Armbruster
2014-05-05 15:18 ` Eric Blake
2014-05-05 17:34 ` Markus Armbruster
2014-05-05 23:03 ` Eric Blake
2014-05-06 9:55 ` Markus Armbruster
2014-05-06 12:35 ` Eric Blake
2014-05-06 15:09 ` Markus Armbruster
2014-05-06 1:30 ` Fam Zheng
2014-05-06 3:09 ` Eric Blake
2014-05-06 5:11 ` Fam Zheng
2014-05-06 11:57 ` Markus Armbruster
2014-05-06 11:53 ` 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=5367AA92.1090905@redhat.com \
--to=eblake@redhat.com \
--cc=akong@redhat.com \
--cc=armbru@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).