aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2012-09-07 11:11:03 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2012-09-25 20:05:04 -0500
commitac05f3492421caeb05809ffa02c6198ede179e43 (patch)
tree1554c89dcd8a76dd519bd1771d93cbde0fd3c63e /vl.c
parent3202becaa2b805497ce9e6faa6edfb83665f91b1 (diff)
downloadqemu-ac05f3492421caeb05809ffa02c6198ede179e43.zip
qemu-ac05f3492421caeb05809ffa02c6198ede179e43.tar.gz
qemu-ac05f3492421caeb05809ffa02c6198ede179e43.tar.bz2
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 <akong@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 599d17a..8d305ca 100644
--- a/vl.c
+++ b/vl.c
@@ -2632,7 +2632,8 @@ int main(int argc, char **argv, char **envp)
{
static const char * const params[] = {
"order", "once", "menu",
- "splash", "splash-time", NULL
+ "splash", "splash-time",
+ "reboot-timeout", NULL
};
char buf[sizeof(boot_devices)];
char *standard_boot_devices;