Skip to contentSkip to conversation

fw_cfg: RQFN rules, documentation

PATCH Superseded Michael S. Tsirkin 2 participants 6 messages Apr 4, 2016 – Apr 5, 2016

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fw_cfg: RQFN rules, documentation

This requires that all -fw_cfg command line users use names of the form opt/RQFN/: such names are compatible with QEMU 2.4 and 2.5 as well as future QEMU versions.

As ability to insert fw_cfg entries in QEMU root is useful for firmware development, add a special prefix: unsupported/root/ that allows that, while making sure users are aware it's unsupported.

Cc Gerd Hoffmann <[email protected]>
Cc Gabriel L. Somlo <[email protected]>
Cc Laszlo Ersek <[email protected]>
Cc Markus Armbruster <[email protected]>

---

This summarizes the discussions we had on list.

 vl.c                  | 40 ++++++++++++++++++++++++++++++++++++----
 docs/specs/fw_cfg.txt | 34 +++++++++++++++++-----------------
 qemu-options.hx       | 38 +++++++++++++++++++++++++++++++++-----
 3 files changed, 86 insertions(+), 26 deletions(-)
vl.c +36 -4
index 2200e62..af9c9d6 100644
@@ -2296,8 +2296,10 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
 {
     gchar *buf;
     size_t size;
-    const char *name, *file, *str;
+    const char *name, *file, *str, *slash, *dot;
     FWCfgState *fw_cfg = (FWCfgState *) opaque;
+    const char qemu_prefix[] = "opt/org.qemu";
+    const char unsupported_root_prefix[] = "unsupported/root/";
 
     if (fw_cfg == NULL) {
         error_report("fw_cfg device not available");
@@ -2320,9 +2322,39 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
         error_report("name too long (max. %d char)", FW_CFG_MAX_FILE_PATH - 1);
         return -1;
     }
-    if (strncmp(name, "opt/", 4) != 0) {
-        error_report("warning: externally provided fw_cfg item names "
-                     "should be prefixed with \"opt/\"");
+    /*
+     * Look for and strip unsupported_root_prefix, which is useful for firmware
+     * development, but warn users.
+     */
+    if (!strncmp(name, unsupported_root_prefix, strlen(unsupported_root_prefix))) {
+        error_report("warning: removing prefix \"%s\". "
+                     "Guest or QEMU may crash. "
+                     "Names must be prefixed with \"opt/RQFN/\"",
+                     unsupported_root_prefix);
+        name += strlen(unsupported_root_prefix);
+        if (!(nonempty_str(name))) {
+            error_report("invalid argument(s)");
+            return -1;
+        }
+    } else {
+        /*
+         * Don't attempt to validate a valid RQFN in name, as that's not easy:
+         * we do validate that it includes '.' .
+         */
+        if (strncmp(name, "opt/", 4) ||
+            !((dot = strchr(name + 4, '.'))) ||
+            !((slash = strchr(name + 4, '/'))) ||
+            dot > slash) {
+            error_report("error: externally provided fw_cfg item names "
+                         "must be prefixed with \"opt/RQFN/\"");
+            return -1;
+        }
+        if (!strncmp(name, qemu_prefix, strlen(qemu_prefix))) {
+            error_report("error: externally provided fw_cfg item names "
+                         "must not use the reserved prefix \"%s\"",
+                         qemu_prefix);
+            return -1;
+        }
     }
     if (nonempty_str(str)) {
         size = strlen(str); /* NUL terminator NOT included in fw_cfg blob */
docs/specs/fw_cfg.txt +17 -17
index 5414140..83b5e80 100644
@@ -210,29 +210,29 @@ the following syntax:
 
     -fw_cfg [name=]<item_name>,file=<path>
 
-where <item_name> is the fw_cfg item name, and <path> is the location
-on the host file system of a file containing the data to be inserted.
-
-Small enough items may be provided directly as strings on the command
-line, using the syntax:
+Or
 
     -fw_cfg [name=]<item_name>,string=<string>
 
-The terminating NUL character of the content <string> will NOT be
-included as part of the fw_cfg item data, which is consistent with
-the absence of a NUL terminator for items inserted via the file option.
+See QEMU man page for more documentation.
 
-Both <item_name> and, if applicable, the content <string> are passed
-through by QEMU without any interpretation, expansion, or further
-processing. Any such processing (potentially performed e.g., by the shell)
-is outside of QEMU's responsibility; as such, using plain ASCII characters
-is recommended.
+Using item_name with plain ASCII characters only is recommended.
 
-NOTE: Users *SHOULD* choose item names beginning with the prefix "opt/"
+Users MUST choose item names beginning with the prefix "opt/RQFN/"
 when using the "-fw_cfg" command line option, to avoid conflicting with
-item names used internally by QEMU. For instance:
+item names used internally by QEMU, or by firmware. For instance:
 
-    -fw_cfg name=opt/my_item_name,file=./my_blob.bin
+    -fw_cfg name=opt/com.my_company/guestagent/guestblob,file=./my_blob.bin
 
-Similarly, QEMU developers *SHOULD NOT* use item names prefixed with
+Similarly, QEMU developers MUST NOT use item names prefixed with
 "opt/" when inserting items programmatically, e.g. via fw_cfg_add_file().
+
+For historical reasons "opt/ovmf/" is reserved for use with the OVMF firmware.
+
+To simplify guest firmware development, the prefix
+unsupported/root/ is automatically stripped from paths, which
+allows creating fw_cfg files in the root QEMU directory.  This interface is
+strictly for use by developers, its use can cause guest or QEMU crashes, is
+unsupported and can be removed at any point.
+
+Any use of the prefix "opt/org.qemu/" is reserved for future use.
qemu-options.hx +33 -5
index a770086..1af28ac 100644
@@ -2860,18 +2860,46 @@ ETEXI
 
 DEF("fw_cfg", HAS_ARG, QEMU_OPTION_fwcfg,
     "-fw_cfg [name=]<name>,file=<file>\n"
-    "                add named fw_cfg entry from file\n"
+    "                add named fw_cfg entry with content from file\n"
     "-fw_cfg [name=]<name>,string=<str>\n"
-    "                add named fw_cfg entry from string\n",
+    "                add named fw_cfg entry with content from string\n",
     QEMU_ARCH_ALL)
 STEXI
+
 @item -fw_cfg [name=]@var{name},file=@var{file}
 @findex -fw_cfg
-Add named fw_cfg entry from file. @var{name} determines the name of
-the entry in the fw_cfg file directory exposed to the guest.
+Add named fw_cfg entry with content from file @var{file}.
 
 @item -fw_cfg [name=]@var{name},string=@var{str}
-Add named fw_cfg entry from string.
+Add named fw_cfg entry with content from string @var{str}, up to the first NUL character.
+
+The terminating NUL character of the content @var{str} will NOT be
+included as part of the fw_cfg item data. To insert content including
+the NUL character, store it in file and insert the item via
+the @var{file} option.
+
+Both the name and the content are passed by QEMU through to the guest, where:
+@table @option
+@item @var{name} determines the name of the entry in the fw_cfg file directory exposed to the guest.
+
+@var{name} must be in the format opt/RQFN/<item_name>.
+
+Any processing of @var{name} values (potentially performed e.g., by the shell)
+is outside of QEMU's responsibility; as such, using plain ASCII characters is
+recommended.
+@end table
+
+Example:
+@example
+    -fw_cfg opt/com.mycompany/guestagent/guestblob,file=./my_blob.bin
+@end example
+
+To simplify guest firmware development, the prefix
+unsupported/root/ is automatically stripped from paths, which
+allows creating fw_cfg files in the root QEMU directory.  This interface is
+strictly for use by developers, its use can cause Guest or QEMU crashes, is
+unsupported and can be removed at any point.
+
 ETEXI
 
 DEF("serial", HAS_ARG, QEMU_OPTION_serial, \
Signature · 1 line
MST
#1 lore raw
Quoted 3 lines · Michael S. Tsirkin

This requires that all -fw_cfg command line users use names of the form opt/RQFN/: such names are compatible with QEMU 2.4 and 2.5 as well as future QEMU versions.

I think "RQFN" is a typo; shouldn't it be RFQDN (reverse fully qualified domain name)? In the subject too.

Quoted 24 lines

As ability to insert fw_cfg entries in QEMU root is useful for firmware development, add a special prefix: unsupported/root/ that allows that, while making sure users are aware it's unsupported.

Cc Gerd Hoffmann <[email protected]>
Cc Gabriel L. Somlo <[email protected]>
Cc Laszlo Ersek <[email protected]>
Cc Markus Armbruster <[email protected]>

---

This summarizes the discussions we had on list.

 vl.c                  | 40 ++++++++++++++++++++++++++++++++++++----
 docs/specs/fw_cfg.txt | 34 +++++++++++++++++-----------------
 qemu-options.hx       | 38 +++++++++++++++++++++++++++++++++-----
 3 files changed, 86 insertions(+), 26 deletions(-)
vl.c +0 -0
index 2200e62..af9c9d6 100644

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2302

Quoted 8 lines
vl.c +3 -1
@@ -2296,8 +2296,10 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
 {
     gchar *buf;
     size_t size;
-    const char *name, *file, *str;
+    const char *name, *file, *str, *slash, *dot;
     FWCfgState *fw_cfg = (FWCfgState *) opaque;
+    const char qemu_prefix[] = "opt/org.qemu";
+    const char unsupported_root_prefix[] = "unsupported/root/";

Side point: "static" for these two?

Quoted 5 lines
vl.c +0 -0
     if (fw_cfg == NULL) {
         error_report("fw_cfg device not available");
@@ -2320,9 +2322,39 @@ static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp)
         error_report("name too long (max. %d char)", FW_CFG_MAX_FILE_PATH - 1);

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2329

Quoted 10 lines
vl.c +5 -3
         return -1;
     }
-    if (strncmp(name, "opt/", 4) != 0) {
-        error_report("warning: externally provided fw_cfg item names "
-                     "should be prefixed with \"opt/\"");
+    /*
+     * Look for and strip unsupported_root_prefix, which is useful for firmware
+     * development, but warn users.
+     */
+    if (!strncmp(name, unsupported_root_prefix, strlen(unsupported_root_prefix))) {

Side point: how about using sizeof ... -1 instead of strlen() here?

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2333

Quoted 4 lines
vl.c +4 -0
+        error_report("warning: removing prefix \"%s\". "
+                     "Guest or QEMU may crash. "
+                     "Names must be prefixed with \"opt/RQFN/\"",
+                     unsupported_root_prefix);

RFQDN

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2334

Quoted 1 line
vl.c +1 -0
+        name += strlen(unsupported_root_prefix);

sizeof?

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2335

Quoted 1 line
vl.c +1 -0
+        if (!(nonempty_str(name))) {

Does the QEMU coding style suggest

!(nonempty_str(name))

over

!nonempty_str(name)

?

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2337

Quoted 2 lines
vl.c +2 -0
+            error_report("invalid argument(s)");
+            return -1;

Hmm, not sure about two separate error_report() calls. Could be okay; I'm getting confused by the hint thing. Markus?

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2341

Quoted 4 lines
vl.c +4 -0
+        }
+    } else {
+        /*
+         * Don't attempt to validate a valid RQFN in name, as that's not easy:

RFQDN

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2346

Quoted 5 lines
vl.c +5 -0
+         * we do validate that it includes '.' .
+         */
+        if (strncmp(name, "opt/", 4) ||
+            !((dot = strchr(name + 4, '.'))) ||
+            !((slash = strchr(name + 4, '/'))) ||

I don't think the double parens are necessary. Does gcc complain otherwise? (Sigh...)

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2349

Quoted 3 lines
vl.c +3 -0
+            dot > slash) {
+            error_report("error: externally provided fw_cfg item names "
+                         "must be prefixed with \"opt/RQFN/\"");

RFQDN

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2352

Quoted 3 lines
vl.c +3 -0
+            return -1;
+        }
+        if (!strncmp(name, qemu_prefix, strlen(qemu_prefix))) {

sizeof?

vl.c static int parse_fw_cfg(void *opaque, QemuOpts *opts, Error **errp) · line 2358

Quoted 6 lines
vl.c +5 -0
+            error_report("error: externally provided fw_cfg item names "
+                         "must not use the reserved prefix \"%s\"",
+                         qemu_prefix);
+            return -1;
+        }
     }

I believe these checks will reject the historical "opt/ovmf/" prefix, documented below. (Specifically, the dot check.)

Quoted 23 lines
vl.c +0 -0
     if (nonempty_str(str)) {
         size = strlen(str); /* NUL terminator NOT included in fw_cfg blob */
docs/specs/fw_cfg.txt +2 -8
index 5414140..83b5e80 100644
@@ -210,29 +210,29 @@ the following syntax:
 
     -fw_cfg [name=]<item_name>,file=<path>
 
-where <item_name> is the fw_cfg item name, and <path> is the location
-on the host file system of a file containing the data to be inserted.
-
-Small enough items may be provided directly as strings on the command
-line, using the syntax:
+Or
 
     -fw_cfg [name=]<item_name>,string=<string>
 
-The terminating NUL character of the content <string> will NOT be
-included as part of the fw_cfg item data, which is consistent with
-the absence of a NUL terminator for items inserted via the file option.
+See QEMU man page for more documentation.

docs/specs/fw_cfg.txt the following syntax: · line 221

Quoted 10 lines
docs/specs/fw_cfg.txt +2 -6
 
-Both <item_name> and, if applicable, the content <string> are passed
-through by QEMU without any interpretation, expansion, or further
-processing. Any such processing (potentially performed e.g., by the shell)
-is outside of QEMU's responsibility; as such, using plain ASCII characters
-is recommended.
+Using item_name with plain ASCII characters only is recommended.
 
-NOTE: Users *SHOULD* choose item names beginning with the prefix "opt/"
+Users MUST choose item names beginning with the prefix "opt/RQFN/"

RFQDN

Quoted 9 lines
docs/specs/fw_cfg.txt +3 -3
 when using the "-fw_cfg" command line option, to avoid conflicting with
-item names used internally by QEMU. For instance:
+item names used internally by QEMU, or by firmware. For instance:
 
-    -fw_cfg name=opt/my_item_name,file=./my_blob.bin
+    -fw_cfg name=opt/com.my_company/guestagent/guestblob,file=./my_blob.bin
 
-Similarly, QEMU developers *SHOULD NOT* use item names prefixed with
+Similarly, QEMU developers MUST NOT use item names prefixed with

docs/specs/fw_cfg.txt the following syntax: · line 237

Quoted 10 lines
docs/specs/fw_cfg.txt +9 -0
 "opt/" when inserting items programmatically, e.g. via fw_cfg_add_file().
+
+For historical reasons "opt/ovmf/" is reserved for use with the OVMF firmware.
+
+To simplify guest firmware development, the prefix
+unsupported/root/ is automatically stripped from paths, which
+allows creating fw_cfg files in the root QEMU directory.  This interface is
+strictly for use by developers, its use can cause guest or QEMU crashes, is
+unsupported and can be removed at any point.
+

Okay, so you listed three groups of people in the discussion:
- QEMU developers
- QEMU firmware developers
- users

QEMU developers shall use stuff outside of "opt/" (and in the future, maybe under "opt/org.qemu/"). Okay.

Users shall use "opt/com.my_company/..." style stuff; okay as well.

QEMU firmware developers will use "unsupported/root/..." when they want to mess with the firmware in connection with fw_cfg files that QEMU itself may expose under some circumstances. Okay.

Going forward, QEMU firmware developers shall use -- talking specifics now -- "opt/org.tianocore.edk2.ovmf/..." and "opt/org.seabios/..." pathnames for genuine firmware settings that QEMU doesn't / shouldn't populate itself, but users might want to. Is that right?

... My question is, do we need the "opt/" prefix at all (for the future, i.e., the non-historical cases)? Looking at the last discussion, I believe we converged on:

- QEMU devs (future filenames): org.qemu/...
- users: com.my_company/...
- QEMU fw devs (future names): org.tianocore.edk2.ovmf/...

                                org.seabios/...

- QEMU fw devs hacking: <root-prefix-to-strip>/...

Did you find something unsafe about this (necessitating "opt/")?

docs/specs/fw_cfg.txt the following syntax: · line 238

Quoted 1 line
docs/specs/fw_cfg.txt +1 -0
+Any use of the prefix "opt/org.qemu/" is reserved for future use.

This does not exactly match the code; the code will also reject "opt/org.qemu1234" and "opt/org.qemu.why.not/...".

I guess it's probably the code that reflects your intent, so the docs should be adapted.

Quoted 24 lines
qemu-options.hx +4 -5
index a770086..1af28ac 100644
@@ -2860,18 +2860,46 @@ ETEXI
 
 DEF("fw_cfg", HAS_ARG, QEMU_OPTION_fwcfg,
     "-fw_cfg [name=]<name>,file=<file>\n"
-    "                add named fw_cfg entry from file\n"
+    "                add named fw_cfg entry with content from file\n"
     "-fw_cfg [name=]<name>,string=<str>\n"
-    "                add named fw_cfg entry from string\n",
+    "                add named fw_cfg entry with content from string\n",
     QEMU_ARCH_ALL)
 STEXI
+
 @item -fw_cfg [name=]@var{name},file=@var{file}
 @findex -fw_cfg
-Add named fw_cfg entry from file. @var{name} determines the name of
-the entry in the fw_cfg file directory exposed to the guest.
+Add named fw_cfg entry with content from file @var{file}.
 
 @item -fw_cfg [name=]@var{name},string=@var{str}
-Add named fw_cfg entry from string.

qemu-options.hx ETEXI · line 2883

Quoted 10 lines
qemu-options.hx +10 -0
+Add named fw_cfg entry with content from string @var{str}, up to the first NUL character.
+
+The terminating NUL character of the content @var{str} will NOT be
+included as part of the fw_cfg item data. To insert content including
+the NUL character, store it in file and insert the item via
+the @var{file} option.
+
+Both the name and the content are passed by QEMU through to the guest, where:
+@table @option
+@item @var{name} determines the name of the entry in the fw_cfg file directory exposed to the guest.

Isn't this line overlong? (Maybe it's required by @table, I don't know.)

qemu-options.hx ETEXI · line 2885

Quoted 2 lines
qemu-options.hx +2 -0
+
+@var{name} must be in the format opt/RQFN/<item_name>.

RFQDN

qemu-options.hx ETEXI · line 2894

Quoted 9 lines
qemu-options.hx +9 -0
+
+Any processing of @var{name} values (potentially performed e.g., by the shell)
+is outside of QEMU's responsibility; as such, using plain ASCII characters is
+recommended.
+@end table
+
+Example:
+@example
+    -fw_cfg opt/com.mycompany/guestagent/guestblob,file=./my_blob.bin

The example doesn't exactly match the one in the specs file ("name=" and the underscore in "my_company" are missing). Not too important, but the "guestagent" string suggests we might want to be consistent here.

qemu-options.hx ETEXI · line 2900

Quoted 6 lines
qemu-options.hx +6 -0
+@end example
+
+To simplify guest firmware development, the prefix
+unsupported/root/ is automatically stripped from paths, which
+allows creating fw_cfg files in the root QEMU directory.  This interface is
+strictly for use by developers, its use can cause Guest or QEMU crashes, is

s/Guest/guest/?

qemu-options.hx ETEXI · line 2905

Quoted 6 lines
qemu-options.hx +2 -0
+unsupported and can be removed at any point.
+
 ETEXI
 
 DEF("serial", HAS_ARG, QEMU_OPTION_serial, \

Thanks
Laszlo

#2 lore raw

Thanks a lot for the comments! I'll address them, for now snipping most of it out and just answering your questions:

Quoted 44 lines
Quoted 9 lines

when using the "-fw_cfg" command line option, to avoid conflicting with

docs/specs/fw_cfg.txt +3 -3
-item names used internally by QEMU. For instance:
+item names used internally by QEMU, or by firmware. For instance:
 
-    -fw_cfg name=opt/my_item_name,file=./my_blob.bin
+    -fw_cfg name=opt/com.my_company/guestagent/guestblob,file=./my_blob.bin
 
-Similarly, QEMU developers *SHOULD NOT* use item names prefixed with
+Similarly, QEMU developers MUST NOT use item names prefixed with

docs/specs/fw_cfg.txt the following syntax: · line 237

Quoted 10 lines
docs/specs/fw_cfg.txt +9 -0
 "opt/" when inserting items programmatically, e.g. via fw_cfg_add_file().
+
+For historical reasons "opt/ovmf/" is reserved for use with the OVMF firmware.
+
+To simplify guest firmware development, the prefix
+unsupported/root/ is automatically stripped from paths, which
+allows creating fw_cfg files in the root QEMU directory.  This interface is
+strictly for use by developers, its use can cause guest or QEMU crashes, is
+unsupported and can be removed at any point.
+

Okay, so you listed three groups of people in the discussion:
- QEMU developers
- QEMU firmware developers
- users

QEMU developers shall use stuff outside of "opt/" (and in the future, maybe under "opt/org.qemu/"). Okay.

Users shall use "opt/com.my_company/..." style stuff; okay as well.

QEMU firmware developers will use "unsupported/root/..." when they want to mess with the firmware in connection with fw_cfg files that QEMU itself may expose under some circumstances. Okay.

Going forward, QEMU firmware developers shall use -- talking specifics now -- "opt/org.tianocore.edk2.ovmf/..." and "opt/org.seabios/..." pathnames for genuine firmware settings that QEMU doesn't / shouldn't populate itself, but users might want to. Is that right?

... My question is, do we need the "opt/" prefix at all (for the future, i.e., the non-historical cases)?
Looking at the last discussion, I
believe we converged on:

Quoted 8 lines

- QEMU devs (future filenames): org.qemu/...
- users: com.my_company/...
- QEMU fw devs (future names): org.tianocore.edk2.ovmf/...

                                org.seabios/...

- QEMU fw devs hacking: <root-prefix-to-strip>/...

Did you find something unsafe about this (necessitating "opt/")?

The reason to use the opt/ prefix is to avoid warning with QEMU 2.4 and 2.5.

....

Quoted 22 lines
Quoted 22 lines
qemu-options.hx +4 -4
index a770086..1af28ac 100644
@@ -2860,18 +2860,46 @@ ETEXI
 
 DEF("fw_cfg", HAS_ARG, QEMU_OPTION_fwcfg,
     "-fw_cfg [name=]<name>,file=<file>\n"
-    "                add named fw_cfg entry from file\n"
+    "                add named fw_cfg entry with content from file\n"
     "-fw_cfg [name=]<name>,string=<str>\n"
-    "                add named fw_cfg entry from string\n",
+    "                add named fw_cfg entry with content from string\n",
     QEMU_ARCH_ALL)
 STEXI
+
 @item -fw_cfg [name=]@var{name},file=@var{file}
 @findex -fw_cfg
-Add named fw_cfg entry from file. @var{name} determines the name of
-the entry in the fw_cfg file directory exposed to the guest.
+Add named fw_cfg entry with content from file @var{file}.
 
Quoted 14 lines

qemu-options.hx ETEXI · line 2883

Quoted 12 lines
qemu-options.hx +10 -1
 @item -fw_cfg [name=]@var{name},string=@var{str}
-Add named fw_cfg entry from string.
+Add named fw_cfg entry with content from string @var{str}, up to the first NUL character.
+
+The terminating NUL character of the content @var{str} will NOT be
+included as part of the fw_cfg item data. To insert content including
+the NUL character, store it in file and insert the item via
+the @var{file} option.
+
+Both the name and the content are passed by QEMU through to the guest, where:
+@table @option
+@item @var{name} determines the name of the entry in the fw_cfg file directory exposed to the guest.

Isn't this line overlong? (Maybe it's required by @table, I don't know.)

Seems to be - man page looks very ugly otherwise, with half the sentence highlighted.

Signature · 1 line
MST
#3 lore raw
Quoted 11 lines · Michael S. Tsirkin
Quoted 11 lines

... My question is, do we need the "opt/" prefix at all (for the future, i.e., the non-historical cases)?
Looking at the last discussion, I
believe we converged on:

- QEMU devs (future filenames): org.qemu/...
- users: com.my_company/...
- QEMU fw devs (future names): org.tianocore.edk2.ovmf/...

                                org.seabios/...

- QEMU fw devs hacking: <root-prefix-to-strip>/...

Quoted 5 lines
Quoted 2 lines

Did you find something unsafe about this (necessitating "opt/")?

The reason to use the opt/ prefix is to avoid warning with QEMU 2.4 and 2.5.

Sorry, it's been a long day :), and I don't understand your answer. Can you please spell it out for me? How are QEMU 2.4 and 2.5 related to this discussion?

Thanks!
Laszlo

#4 lore raw
Quoted 19 lines · Laszlo Ersek
Quoted 11 lines · Michael S. Tsirkin
Quoted 11 lines

... My question is, do we need the "opt/" prefix at all (for the future, i.e., the non-historical cases)?
Looking at the last discussion, I
believe we converged on:

- QEMU devs (future filenames): org.qemu/...
- users: com.my_company/...
- QEMU fw devs (future names): org.tianocore.edk2.ovmf/...

                                org.seabios/...

- QEMU fw devs hacking: <root-prefix-to-strip>/...

Quoted 5 lines
Quoted 2 lines

Did you find something unsafe about this (necessitating "opt/")?

The reason to use the opt/ prefix is to avoid warning with QEMU 2.4 and 2.5.

Quoted 6 lines

Sorry, it's been a long day :), and I don't understand your answer. Can you please spell it out for me? How are QEMU 2.4 and 2.5 related to this discussion?

Thanks!
Laszlo

People would want to use the same command line for QEMU 2.4, 2.5 and 2.6. If you use a prefix without opt with 2.4/2.5 you get a warning, and if people get a warning from a valid command line, that's not nice, so we want a prefix that does not cause a warning for these versions.

Signature · 1 line
MST
#5 lore raw
Quoted 24 lines · Michael S. Tsirkin
Quoted 23 lines · Laszlo Ersek
Quoted 11 lines · Michael S. Tsirkin
Quoted 11 lines

... My question is, do we need the "opt/" prefix at all (for the future, i.e., the non-historical cases)?
Looking at the last discussion, I
believe we converged on:

- QEMU devs (future filenames): org.qemu/...
- users: com.my_company/...
- QEMU fw devs (future names): org.tianocore.edk2.ovmf/...

                                org.seabios/...

- QEMU fw devs hacking: <root-prefix-to-strip>/...

Quoted 5 lines
Quoted 2 lines

Did you find something unsafe about this (necessitating "opt/")?

The reason to use the opt/ prefix is to avoid warning with QEMU 2.4 and 2.5.

Sorry, it's been a long day :), and I don't understand your answer. Can you please spell it out for me? How are QEMU 2.4 and 2.5 related to this discussion?

Quoted 7 lines
Quoted 2 lines

Thanks!
Laszlo

People would want to use the same command line for QEMU 2.4, 2.5 and 2.6. If you use a prefix without opt with 2.4/2.5 you get a warning, and if people get a warning from a valid command line, that's not nice, so we want a prefix that does not cause a warning for these versions.

Ah, understood. Thanks.
Laszlo