mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
Add bootindex for option roms.
Extend -option-rom command to have additional parameter ,bootindex=. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
de1f34cb63
commit
2e55e84282
12 changed files with 60 additions and 24 deletions
|
@ -429,6 +429,22 @@ QemuOptsList qemu_spice_opts = {
|
|||
},
|
||||
};
|
||||
|
||||
QemuOptsList qemu_option_rom_opts = {
|
||||
.name = "option-rom",
|
||||
.implied_opt_name = "romfile",
|
||||
.head = QTAILQ_HEAD_INITIALIZER(qemu_option_rom_opts.head),
|
||||
.desc = {
|
||||
{
|
||||
.name = "bootindex",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
}, {
|
||||
.name = "romfile",
|
||||
.type = QEMU_OPT_STRING,
|
||||
},
|
||||
{ /* end if list */ }
|
||||
},
|
||||
};
|
||||
|
||||
static QemuOptsList *vm_config_groups[32] = {
|
||||
&qemu_drive_opts,
|
||||
&qemu_chardev_opts,
|
||||
|
@ -442,6 +458,7 @@ static QemuOptsList *vm_config_groups[32] = {
|
|||
#ifdef CONFIG_SIMPLE_TRACE
|
||||
&qemu_trace_opts,
|
||||
#endif
|
||||
&qemu_option_rom_opts,
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue