From ac05f3492421caeb05809ffa02c6198ede179e43 Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Fri, 7 Sep 2012 11:11:03 +0800 Subject: add a boot parameter to set reboot timeout Added an option to let qemu transfer a configuration file to bios, "etc/boot-fail-wait", which could be specified by command -boot reboot-timeout=T T have a max value of 0xffff, unit is ms. With this option, guest will wait for a given time if not find bootabled device, then reboot. If reboot-timeout is '-1', guest will not reboot, qemu passes '-1' to bios by default. This feature need the new seabios's support. Seabios pulls the value from the fwcfg "file" interface, this interface is used because SeaBIOS needs a reliable way of obtaining a name, value size, and value. It in no way requires that there be a real file on the user's host machine. Signed-off-by: Amos Kong Signed-off-by: Anthony Liguori --- qemu-config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu-config.c') diff --git a/qemu-config.c b/qemu-config.c index 12eafbb4f5..cd1ec2165a 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -645,6 +645,9 @@ QemuOptsList qemu_boot_opts = { }, { .name = "splash-time", .type = QEMU_OPT_STRING, + }, { + .name = "reboot-timeout", + .type = QEMU_OPT_STRING, }, { /*End of list */ } }, -- cgit v1.2.3