|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] Fix boot once option |
Date: | Mon, 03 May 2010 12:15:06 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0 |
On 04/30/2010 04:21 PM, Alex Williamson wrote:
The boot once options seems to have gotten broken since it originally went in. We need to wait until the second time restore_boot_devices() gets called before restoring the standard boot order and removing itself from the reset list. Signed-off-by: Alex Williamson<address@hidden>
Applied. Thanks. Regards, Anthony Liguori
-- diff --git a/vl.c b/vl.c index a485c58..2fabc7e 100644 --- a/vl.c +++ b/vl.c @@ -1193,6 +1193,13 @@ static void validate_bootdevices(char *devices) static void restore_boot_devices(void *opaque) { char *standard_boot_devices = opaque; + static int first = 1; + + /* Restore boot order and remove ourselves after the first boot */ + if (first) { + first = 0; + return; + } qemu_boot_set(standard_boot_devices);
[Prev in Thread] | Current Thread | [Next in Thread] |