Skip to contentSkip to conversation

qemu-options: Improve documentation for the fw_cfg option

PATCH New Yihuan Pan 1 participant 1 message Dec 8, 2023

lore
Share & tools
lore

Yihuan Pan

author
#0 lore raw

PATCH 1/1 qemu-options: Improve documentation for the fw_cfg option

Enhance the documentation for the fw_cfg option in qemu-options.hx to provide clearer instructions on handling filenames and strings.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1839

---
 qemu-options.hx | 4 ++++
 1 file changed, 4 insertions(+)
qemu-options.hx +4 -0
index 42fd09e4de..a935aaae44 100644
@@ -4086,9 +4086,13 @@ DEF("fw_cfg", HAS_ARG, QEMU_OPTION_fwcfg,
 SRST
 ``-fw_cfg [name=]name,file=file``
     Add named fw\_cfg entry with contents from file file.
+    If the filename contains comma, you must double it (for instance,
+    "file=my,,file" to use file "my,file").
 
 ``-fw_cfg [name=]name,string=str``
     Add named fw\_cfg entry with contents from string str.
+    If the string contains comma, you must double it (for instance,
+    "string=my,,string" to use file "my,string").
 
     The terminating NUL character of the contents of str will not be
     included as part of the fw\_cfg item data. To insert contents with
Signature · 1 line
2.43.0