From: Amos Kong <akong@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws
Subject: Re: [Qemu-devel] [PATCH v2 1/2] fix a typo of strict option
Date: Mon, 9 Dec 2013 19:55:36 +0800 [thread overview]
Message-ID: <20131209115536.GC13283@amosk.info> (raw)
In-Reply-To: <878uvufkp5.fsf@blackfin.pond.sub.org>
On Mon, Dec 09, 2013 at 10:16:38AM +0100, Markus Armbruster wrote:
> Amos Kong <akong@redhat.com> writes:
>
> > The type of "strict" should be bool.
> >
> > Signed-off-by: Amos Kong <akong@redhat.com>
> > ---
> > vl.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/vl.c b/vl.c
> > index b0399de..12fe1f7 100644
> > --- a/vl.c
> > +++ b/vl.c
> > @@ -461,7 +461,7 @@ static QemuOptsList qemu_boot_opts = {
> > .type = QEMU_OPT_STRING,
> > }, {
> > .name = "strict",
> > - .type = QEMU_OPT_STRING,
> > + .type = QEMU_OPT_BOOL,
> > },
> > { /*End of list */ }
> > },
>
> No, this isn't just a typo fix, it's an interface change. It's not
> immediately obvious whether it's okay.
You are correct, it's not a typo, menu's type was also changed from STRING to BOOL.
We can just process strict as menu.
> -boot parameter 'strict' appeared in commit c8a6ae8. It was declared
> QEMU_OPT_STRING, but the code using the value rejected anything but 'on'
> and 'off'. This shipped in 1.5.0.
>
> Commit 6ef4716 accidentally dropped the code using the value of
> 'strict'. Since then, any parameter value is accepted and silently
> ignored. Shipped in 1.6.0.
>
> Your change restores the "reject anything but 'on' and 'off'" part (the
> "use the value" part gets restored in the next patch). Okay, because
> the values erroneously accepted in the meantime didn't do anything.
Thanks your explanation :)
--
Amos.
next prev parent reply other threads:[~2013-12-09 11:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-09 8:05 [Qemu-devel] [PATCH v2 0/2] fix strict boot regression Amos Kong
2013-12-09 8:05 ` [Qemu-devel] [PATCH v2 1/2] fix a typo of strict option Amos Kong
2013-12-09 9:16 ` Markus Armbruster
2013-12-09 11:55 ` Amos Kong [this message]
2013-12-09 8:05 ` [Qemu-devel] [PATCH v2 2/2] add parsing of "strict" boot parameter Amos Kong
2013-12-09 9:25 ` Markus Armbruster
2013-12-09 8:16 ` [Qemu-devel] [PATCH v2 0/2] fix strict boot regression Michael Tokarev
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=20131209115536.GC13283@amosk.info \
--to=akong@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=armbru@redhat.com \
--cc=pbonzini@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 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).