aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-07-02 00:19:02 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 08:28:12 -0500
commit9538749118d47dfcd3ed45804736027d87ec054e (patch)
tree2655047bd51c44497b55e6f8a01a2d2a3bc855a8 /hw/fw_cfg.c
parentAdd boot-once support (diff)
downloadqemu-kvm-9538749118d47dfcd3ed45804736027d87ec054e.tar.gz
qemu-kvm-9538749118d47dfcd3ed45804736027d87ec054e.tar.bz2
qemu-kvm-9538749118d47dfcd3ed45804736027d87ec054e.zip
Add boot menu control via command line switch
Disable the lengthy BIOS prompt for selecting a boot device by default, but let the user reenable it via '-boot menu=on'. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/fw_cfg.c')
-rw-r--r--hw/fw_cfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index ce57de7d4..d75cce46f 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -279,6 +279,7 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port,
fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16);
fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)(display_type == DT_NOGRAPHIC));
fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus);
+ fw_cfg_add_i16(s, FW_CFG_BOOT_MENU, (uint16_t)boot_menu);
register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s);
qemu_register_reset(fw_cfg_reset, s);