From: Markus Armbruster <armbru@redhat.com>
To: Amos Kong <akong@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, 09 Dec 2013 10:16:38 +0100 [thread overview]
Message-ID: <878uvufkp5.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <1386576358-10469-2-git-send-email-akong@redhat.com> (Amos Kong's message of "Mon, 9 Dec 2013 16:05:57 +0800")
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.
-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.
next prev parent reply other threads:[~2013-12-09 9:16 UTC|newest]
Thread overview: 8+ 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 [this message]
2013-12-09 11:55 ` Amos Kong
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-trivial] [Qemu-devel] [PATCH v2 0/2] fix strict boot regression Michael Tokarev
2013-12-09 8:16 ` 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=878uvufkp5.fsf@blackfin.pond.sub.org \
--to=armbru@redhat.com \
--cc=akong@redhat.com \
--cc=anthony@codemonkey.ws \
--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 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.