All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: QEMU <qemu-devel@nongnu.org>, Corey Minyard <cminyard@mvista.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 6/8] vl.c: disallow command line fw cfg without opt/
Date: Sat, 13 Jan 2018 08:38:59 -0600	[thread overview]
Message-ID: <7d0d484e-2ff2-11cc-8119-8d8586ac04e7@acm.org> (raw)
In-Reply-To: <CAJ+F1CKUK_uRa9imNcOLzvNZyNaC7ciNqLppzGWVZjKGJ8ggRQ@mail.gmail.com>

On 01/12/2018 11:06 AM, Marc-André Lureau wrote:
> Hi
>
> On Thu, Dec 7, 2017 at 10:30 PM,  <minyard@acm.org> wrote:
>> From: "Michael S. Tsirkin" <mst@redhat.com>
>>
>> Allowing arbitary file names on command line is setting us up for
>> failure: future guests will look for a specific QEMU-specified name and
>> will get confused finding a user file there.
>>
> Why is this part of a IPMI series?

It's been so long I don't remember any more.  I think I suggested a 
simpler fix when
Michael posted his, and it ended up in my queue, because at one point 
the IPMI code
was messing around in fw_cfg.  But you are right, it doesn't belong here.

> There was a lengthy discussion on this patch earlier, could you
> summarize the conclusion?

I think there was no conclusion.  This patch should just be dropped.

Thanks for this and your other comments.

-corey

>
> thanks
>
>> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>> [Change "warning" to "error" in the error report.]
>> Signed-off-by: Corey Minyard <cminyard@mvista.com>
>> ---
>>   vl.c | 5 +++--
>>   1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/vl.c b/vl.c
>> index 1ad1c04..fae9300 100644
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -2400,8 +2400,9 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
>>           return -1;
>>       }
>>       if (strncmp(name, "opt/", 4) != 0) {
>> -        warn_report("externally provided fw_cfg item names "
>> -                    "should be prefixed with \"opt/\"");
>> +        error_report("error: externally provided fw_cfg item names "
>> +                     "should be prefixed with \"opt/\"");
>> +        return -1;
>>       }
>>       if (nonempty_str(str)) {
>>           size = strlen(str); /* NUL terminator NOT included in fw_cfg blob */
>> --
>> 2.7.4
>>
>>
>
>

  reply	other threads:[~2018-01-13 14:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07 21:30 [Qemu-devel] [PATCH 0/8] Small IPMI (and other) fixes minyard
2017-12-07 21:30 ` [Qemu-devel] [PATCH 1/8] ipmi: Fix SEL get/set time commands minyard
2018-01-12 16:50   ` Marc-André Lureau
2017-12-07 21:30 ` [Qemu-devel] [PATCH 2/8] ipmi: Don't set the timestamp on add events that don't have it minyard
2017-12-07 21:30 ` [Qemu-devel] [PATCH 3/8] ipmi: Add the platform event message command minyard
2017-12-07 21:30 ` [Qemu-devel] [PATCH 4/8] ipmi: Fix macro issues minyard
2017-12-07 21:30 ` [Qemu-devel] [PATCH 5/8] ipmi: disable IRQ and ATN on an external disconnect minyard
2018-01-12 17:00   ` Marc-André Lureau
2017-12-07 21:30 ` [Qemu-devel] [PATCH 6/8] vl.c: disallow command line fw cfg without opt/ minyard
2018-01-12 17:06   ` Marc-André Lureau
2018-01-13 14:38     ` Corey Minyard [this message]
2017-12-07 21:30 ` [Qemu-devel] [PATCH 7/8] ipmi: Allow BMC device properties to be set minyard
2018-01-12 17:10   ` Marc-André Lureau
2017-12-07 21:30 ` [Qemu-devel] [PATCH 8/8] Add maintainer for the IPMI code minyard
2018-01-12 17:11   ` Marc-André Lureau
2017-12-21 22:56 ` [Qemu-devel] [PATCH 0/8] Small IPMI (and other) fixes Corey Minyard
2017-12-21 23:10 ` no-reply
2017-12-23 14:36   ` Corey Minyard
2017-12-25  2:43     ` Fam Zheng

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=7d0d484e-2ff2-11cc-8119-8d8586ac04e7@acm.org \
    --to=minyard@acm.org \
    --cc=cminyard@mvista.com \
    --cc=marcandre.lureau@gmail.com \
    --cc=mst@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.