Patchwork [1/2] document bootindex option

login
register
mail settings
Submitter Glauber Costa
Date April 12, 2011, 5:23 p.m.
Message ID <1302629037-16084-2-git-send-email-glommer@redhat.com>
Download mbox | patch
Permalink /patch/90838/
State New
Headers show

Comments

Glauber Costa - April 12, 2011, 5:23 p.m.
bootindex option was added to -option-rom switch, but never documented.

Signed-off-by: Glauber Costa <glommer@redhat.com>
---
 qemu-options.hx |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

Patch

diff --git a/qemu-options.hx b/qemu-options.hx
index 18f54d2..96927cc 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2079,13 +2079,20 @@  to cope with initialization race conditions.
 ETEXI
 
 DEF("option-rom", HAS_ARG, QEMU_OPTION_option_rom, \
-    "-option-rom rom load a file, rom, into the option ROM space\n",
+    "-option-rom rom[,bootindex=idx] load a file, rom, into the option ROM space\n",
     QEMU_ARCH_ALL)
 STEXI
-@item -option-rom @var{file}
+@item -option-rom @var{file}[,bootindex=@var{bootindex}]
 @findex -option-rom
 Load the contents of @var{file} as an option ROM.
 This option is useful to load things like EtherBoot.
+
+@table @option
+@item bootindex=@var{bootindex}
+Defines which boot index the option rom will be given in boot entry vectors,
+allowing fine-grained selection of devices boot order.
+@end table
+
 ETEXI
 
 DEF("clock", HAS_ARG, QEMU_OPTION_clock, \