qemu-options.hx: Document -M as -machine alias
PATCH 1/1 qemu-options.hx: Document -M as -machine alias
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.
--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
qemu-options.hx +7 -5
@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRST
@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. + ``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.
@@ -208,12 +212,10 @@ SRST ERST DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL) - + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine. ERST DEF("cpu", HAS_ARG, QEMU_OPTION_cpu,
Signature · 1 line
2.52.0
Quoted 25 lines · [email protected] writes:
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.Reported-by Julian Andres Klode <[email protected]>Signed-off-by Dr. David Alan Gilbert <[email protected]>--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)qemu-options.hx +1
-0@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRST
qemu-options.hx SRST · line 185
Quoted 6 lines
qemu-options.hx +3
-0@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. +
This seems unrelated.
Quoted 6 lines
qemu-options.hx +0
-0``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.@@ -208,12 +212,10 @@ SRST ERST
qemu-options.hx SRST · line 218
Quoted 10 lines
qemu-options.hx +3
-5DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL) - + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine.
Did we have a merge conflict at some point that messed things up?
Quoted 3 lines
qemu-options.hx +0
-0ERST DEF("cpu", HAS_ARG, QEMU_OPTION_cpu,
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 42 lines · * Alex Bennée ([email protected]) wrote:
Quoted 25 lines · [email protected] writes:
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.Reported-by Julian Andres Klode <[email protected]>Signed-off-by Dr. David Alan Gilbert <[email protected]>--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)qemu-options.hx +1
-0@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRSTqemu-options.hx SRST · line 185
Quoted 6 lines
qemu-options.hx +3
-0@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. +This seems unrelated.
Quoted 6 lines
qemu-options.hx +0
-0``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.@@ -208,12 +212,10 @@ SRST ERST
Quoted 12 lines
qemu-options.hx SRST · line 218
Quoted 10 lines
qemu-options.hx +3
-5DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL) - + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine.Did we have a merge conflict at some point that messed things up?
It's not clear - it was the only option hanging around in -M and it was already appearing wrong in the man output.
I wondered if it was some requirement to have *something* in the -M definition so thought it best to move it at the same time.
Dave
Quoted 7 lines
Quoted 3 lines
qemu-options.hx +0
-0ERST DEF("cpu", HAS_ARG, QEMU_OPTION_cpu,Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 44 lines · Dr. David Alan Gilbert
Quoted 42 lines · * Alex Bennée ([email protected]) wrote:
Quoted 25 lines · [email protected] writes:
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.Reported-by Julian Andres Klode <[email protected]>Signed-off-by Dr. David Alan Gilbert <[email protected]>--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)qemu-options.hx +1
-0@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRSTqemu-options.hx SRST · line 185
Quoted 6 lines
qemu-options.hx +3
-0@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. +This seems unrelated.
Quoted 6 lines
qemu-options.hx +0
-0``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.@@ -208,12 +212,10 @@ SRST ERST
Quoted 10 lines
Quoted 10 lines
qemu-options.hx SRST · line 218
Quoted 10 lines
qemu-options.hx +3
-5DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL) - + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine.
Surprisingly, this and -h/--help are our only two options where we provide a short synonym. I note that this handling of -M is not consistent with how we document -h/--help, where we print both on a single line:
-h or -help display this help and exit
But it would be trickier to fit that in for -machine and perhaps confusing given the suboptions.
Quoted 6 lines
Quoted 1 line
Did we have a merge conflict at some point that messed things up?
It's not clear - it was the only option hanging around in -M and it was already appearing wrong in the man output.
I wondered if it was some requirement to have *something* in the -M definition so thought it best to move it at the same time.
It looks like this was incorrectly added under -M by commit dfce81f1b9 ("vl: Add sgx compound properties to expose SGX EPC sections to guest"), which should have put it under -machine like all our other machine suboption documentation.
The result is that the sgx-epc documentation appears OK in --help because the --help output just concatenates everything so it gets tacked on after the -machine help, but it is misrendered in the HTML docs:
https://qemu-project.gitlab.io/qemu/system/invocation.html
as it appears as if a top level option rather than one indented to indicate that it's a machine sub-option. So this change fixes that bug (and should ideally say so in its commit message).
Before that it simply read
-HXCOMM Deprecated by -machine
-DEF("M", HAS_ARG, QEMU_OPTION_M, "", QEMU_ARCH_ALL)
(Commit dfce81f1b9 also silently dropped that "deprecated" comment, which it shouldn't really have done.)
thanks
-- PMM
Quoted 62 lines · * Peter Maydell ([email protected]) wrote:
Quoted 44 lines · Dr. David Alan Gilbert
Quoted 42 lines · * Alex Bennée ([email protected]) wrote:
Quoted 25 lines · [email protected] writes:
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.Reported-by Julian Andres Klode <[email protected]>Signed-off-by Dr. David Alan Gilbert <[email protected]>--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)qemu-options.hx +1
-0@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRSTqemu-options.hx SRST · line 185
Quoted 6 lines
qemu-options.hx +3
-0@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. +This seems unrelated.
Quoted 6 lines
qemu-options.hx +0
-0``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.@@ -208,12 +212,10 @@ SRST ERSTQuoted 10 lines
Quoted 10 lines
qemu-options.hx SRST · line 218
Quoted 10 lines
qemu-options.hx +3
-5DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL) - + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine.Surprisingly, this and -h/--help are our only two options where we provide a short synonym. I note that this handling of -M is not consistent with how we document -h/--help, where we print both on a single line:
-h or -help display this help and exit
Quoted 2 lines
But it would be trickier to fit that in for -machine and perhaps confusing given the suboptions.
Right, that's one of the two reasons I kept it separate. The other reason, is that I couldn't figure out how '-help' and '-h' both got defined - why is the second DEF(...) not needed?
Quoted 26 lines
Quoted 6 lines
Quoted 1 line
Did we have a merge conflict at some point that messed things up?
It's not clear - it was the only option hanging around in -M and it was already appearing wrong in the man output.
I wondered if it was some requirement to have *something* in the -M definition so thought it best to move it at the same time.It looks like this was incorrectly added under -M by commit
dfce81f1b9("vl: Add sgx compound properties to expose SGX EPC sections to guest"), which should have put it under -machine like all our other machine suboption documentation.The result is that the sgx-epc documentation appears OK in --help because the --help output just concatenates everything so it gets tacked on after the -machine help, but it is misrendered in the HTML docs:
https://qemu-project.gitlab.io/qemu/system/invocation.html
as it appears as if a top level option rather than one indented to indicate that it's a machine sub-option. So this change fixes that bug (and should ideally say so in its commit message).Before that it simply read
(quoted diff) +0
-2-HXCOMM Deprecated by -machine -DEF("M", HAS_ARG, QEMU_OPTION_M, "", QEMU_ARCH_ALL)
Quoted 2 lines
(Commit
dfce81f1b9also silently dropped that "deprecated" comment, which it shouldn't really have done.)
Ah.
Dave
Quoted 2 lines
thanks
-- PMM
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 8 lines · Dr. David Alan Gilbert
Quoted 6 lines · * Peter Maydell ([email protected]) wrote:
Surprisingly, this and -h/--help are our only two options where we provide a short synonym. I note that this handling of -M is not consistent with how we document -h/--help, where we print both on a single line:
-h or -help display this help and exit
Quoted 6 lines
Quoted 2 lines
But it would be trickier to fit that in for -machine and perhaps confusing given the suboptions.
Right, that's one of the two reasons I kept it separate. The other reason, is that I couldn't figure out how '-help' and '-h' both got defined - why is the second DEF(...) not needed?
A piece of delicious fudge lurking in system/vl.c: we have this hardcoded entry in the qemu_options[] array before the ones that are generated via the macro-magic from qemu-options.hx:
{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },So we recognize -h on the command line and turn it into QEMU_OPTION_h, the same as -help, but it doesn't result in anything in the documentation (we leave that up to the strings and RST in the DEF("help"...) section).
thanks
-- PMM
Quoted 21 lines · * Peter Maydell ([email protected]) wrote:
Quoted 8 lines · Dr. David Alan Gilbert
Quoted 6 lines · * Peter Maydell ([email protected]) wrote:
Surprisingly, this and -h/--help are our only two options where we provide a short synonym. I note that this handling of -M is not consistent with how we document -h/--help, where we print both on a single line:
-h or -help display this help and exitQuoted 6 lines
Quoted 2 lines
But it would be trickier to fit that in for -machine and perhaps confusing given the suboptions.
Right, that's one of the two reasons I kept it separate. The other reason, is that I couldn't figure out how '-help' and '-h' both got defined - why is the second DEF(...) not needed?
A piece of delicious fudge lurking in
system/vl.c: we have this hardcoded entry in the qemu_options[] array before the ones that are generated via the macro-magic from qemu-options.hx:
Quoted 6 lines
{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },So we recognize -h on the command line and turn it into
QEMU_OPTION_h, the same as -help, but it doesn't result in anything in the documentation (we leave that up to the strings and RST in theDEF("help"...)section).
Hah ok! I guess that fudge could be removed and make it the same way -M works.
Dave
Quoted 2 lines
thanks
-- PMM
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 25 lines · Dr. David Alan Gilbert
Quoted 23 lines · * Peter Maydell ([email protected]) wrote:
Quoted 8 lines · Dr. David Alan Gilbert
Quoted 6 lines · * Peter Maydell ([email protected]) wrote:
Surprisingly, this and -h/--help are our only two options where we provide a short synonym. I note that this handling of -M is not consistent with how we document -h/--help, where we print both on a single line:
-h or -help display this help and exitQuoted 6 lines
Quoted 2 lines
But it would be trickier to fit that in for -machine and perhaps confusing given the suboptions.
Right, that's one of the two reasons I kept it separate. The other reason, is that I couldn't figure out how '-help' and '-h' both got defined - why is the second DEF(...) not needed?
A piece of delicious fudge lurking in
system/vl.c: we have this hardcoded entry in the qemu_options[] array before the ones that are generated via the macro-magic from qemu-options.hx:{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },
Quoted 7 lines
Quoted 4 lines
So we recognize -h on the command line and turn it into
QEMU_OPTION_h, the same as -help, but it doesn't result in anything in the documentation (we leave that up to the strings and RST in theDEF("help"...)section).Hah ok! I guess that fudge could be removed and make it the same way -M works.
Yeah, I was pondering that. Also, we don't document --help in the HTML docs, only -h.
-- PMM
Quoted 77 lines · Peter Maydell
Quoted 44 lines · Dr. David Alan Gilbert
Quoted 42 lines · * Alex Bennée ([email protected]) wrote:
Quoted 25 lines · [email protected] writes:
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.Reported-by Julian Andres Klode <[email protected]>Signed-off-by Dr. David Alan Gilbert <[email protected]>--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)qemu-options.hx +1
-0@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRSTqemu-options.hx SRST · line 185
Quoted 6 lines
qemu-options.hx +3
-0@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. +This seems unrelated.
Quoted 6 lines
qemu-options.hx +0
-0``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.@@ -208,12 +212,10 @@ SRST ERSTQuoted 10 lines
Quoted 10 lines
qemu-options.hx SRST · line 218
Quoted 10 lines
qemu-options.hx +3
-5DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL) - + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine.Surprisingly, this and -h/--help are our only two options where we provide a short synonym. I note that this handling of -M is not consistent with how we document -h/--help, where we print both on a single line:
-h or -help display this help and exitBut it would be trickier to fit that in for -machine and perhaps confusing given the suboptions.
Quoted 6 lines
Quoted 1 line
Did we have a merge conflict at some point that messed things up?
It's not clear - it was the only option hanging around in -M and it was already appearing wrong in the man output.
I wondered if it was some requirement to have *something* in the -M definition so thought it best to move it at the same time.It looks like this was incorrectly added under -M by commit
dfce81f1b9("vl: Add sgx compound properties to expose SGX EPC sections to guest"), which should have put it under -machine like all our other machine suboption documentation.
Quoted 9 lines
The result is that the sgx-epc documentation appears OK in --help because the --help output just concatenates everything so it gets tacked on after the -machine help, but it is misrendered in the HTML docs:
https://qemu-project.gitlab.io/qemu/system/invocation.html
as it appears as if a top level option rather than one indented to indicate that it's a machine sub-option. So this change fixes that bug (and should ideally say so in its commit message).
Yeah, I found this bug before and sent the fix: https://lore.kernel.org/qemu-devel/[email protected]/
But I was occupied with other stuff then so that had no time to sent out the v2.
Quoted 10 lines
Before that it simply read
(quoted diff) +0
-2-HXCOMM Deprecated by -machine -DEF("M", HAS_ARG, QEMU_OPTION_M, "", QEMU_ARCH_ALL)(Commit
dfce81f1b9also silently dropped that "deprecated" comment, which it shouldn't really have done.)thanks
-- PMM
Paolo Bonzini
AppliedQueued, thanks.
Paolo
Quoted 40 lines · On 03/12/2025 14.15, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
-M is used heavily in documentation and scripts, but isn't actually documented anywhere.
Document it as equivalent to -machine.Reported-by Julian Andres Klode <[email protected]>Signed-off-by Dr. David Alan Gilbert <[email protected]>--- qemu-options.hx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)qemu-options.hx +4
-2@@ -44,6 +44,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ #endif " 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" + " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n" " smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\n", QEMU_ARCH_ALL) SRST@@ -179,6 +180,9 @@ SRST -machine cxl-fmw.0.targets.0=cxl.0,cxl-fmw.0.targets.1=cxl.1,cxl-fmw.0.size=128G,cxl-fmw.0.interleave-granularity=512 + ``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` + Define an SGX EPC section. + ``smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel`` Define cache properties for SMP system.@@ -208,12 +212,10 @@ SRST ERST DEF("M", HAS_ARG, QEMU_OPTION_M, - " sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\n", - QEMU_ARCH_ALL)
qemu-options.hx SRST · line 221
Quoted 10 lines
qemu-options.hx +3
-3- + "-M as -machine\n", QEMU_ARCH_ALL) SRST -``sgx-epc.0.memdev=@var{memid},sgx-epc.0.node=@var{numaid}`` - Define an SGX EPC section. +``-M`` + as -machine. ERST DEF("cpu", HAS_ARG, QEMU_OPTION_cpu,