From: "Michael S. Tsirkin" <mst@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Corey Minyard <cminyard@mvista.com>
Subject: [Qemu-devel] [PATCH] vl.c: disallow command line fw cfg without opt/
Date: Tue, 15 Mar 2016 15:55:17 +0200 [thread overview]
Message-ID: <1458050002-27741-1-git-send-email-mst@redhat.com> (raw)
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.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
vl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/vl.c b/vl.c
index 7a28982..5654af6 100644
--- a/vl.c
+++ b/vl.c
@@ -2321,6 +2321,7 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
if (strncmp(name, "opt/", 4) != 0) {
- error_report("warning: externally provided fw_cfg item names "
- "should be prefixed with \"opt/\"");
+ error_report("externally provided fw_cfg item names "
+ "must be prefixed with \"opt/\"");
+ return -1;
}
if (nonempty_str(str)) {
size = strlen(str); /* NUL terminator NOT included in fw_cfg blob */
--
MST
next reply other threads:[~2016-03-15 13:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 13:55 Michael S. Tsirkin [this message]
2016-03-15 14:14 ` [Qemu-devel] [PATCH] vl.c: disallow command line fw cfg without opt/ Paolo Bonzini
2016-03-15 14:25 ` Gerd Hoffmann
2016-03-15 14:27 ` Michael S. Tsirkin
2016-03-15 14:25 ` Michael S. Tsirkin
2016-03-15 14:46 ` Gerd Hoffmann
2016-03-15 14:54 ` Michael S. Tsirkin
2016-03-15 15:03 ` Gerd Hoffmann
2016-03-15 15:05 ` Michael S. Tsirkin
2016-03-15 14:54 ` Paolo Bonzini
2016-03-15 14:58 ` Michael S. Tsirkin
2016-03-17 1:31 ` Corey Minyard
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=1458050002-27741-1-git-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=cminyard@mvista.com \
--cc=kraxel@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 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.