On 26/06/2022 00:34, Simon Sapin wrote:
diff --git qemu-options.hx qemu-options.hx
index 377d22fbd8..eea75ddb37 100644
--- qemu-options.hx
+++ qemu-options.hx
@@ -38,6 +38,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \
" hmat=on|off controls ACPI HMAT support (default=off)\n"
" memory-backend='backend-id' specifies explicitly provided
backend for main RAM (default=none)\n"
"
cxl-fmw.0.targets.0=firsttarget,cxl-fmw.0.targets.1=secondtarget,cxl-fmw.0.size=size[,cxl-fmw.0.interleave-granularity=granularity]\n",
+ " dumpdtb=file dump current device tree blob to a file and
quit\n"
QEMU_ARCH_ALL)
SRST
``-machine [type=]name[,prop=value[,...]]``
Before I added the above chunk I found no trace of `dumpdtb` in --help or Sphinx
docs, but a code search finds two C string literals that seemed to already to
document its existence:
https://gitlab.com/qemu-project/qemu/-/blob/v7.0.0/util/qemu-config.c#L192
https://gitlab.com/qemu-project/qemu/-/blob/v7.0.0/hw/core/machine.c#L810
However I had trouble to find in the code: where are these strings used? Are they
ever shown to a user?
--
Simon Sapin