diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:35:07 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:32:47 +0000 |
commit | 2e55e84282c545aeab8f5c9dd52a8073deaf3dbc (patch) | |
tree | 7fdff0cb2027337a402dfb2f1687840c552a8e76 /qemu-config.c | |
parent | de1f34cb6351c028ebcc61fea9fa78008ca1a529 (diff) |
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>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index 52f18bef31..965fa46fdf 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -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, }; |