[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/18] vl: Move init_timer_alarm() earlier
From: |
minyard |
Subject: |
[Qemu-devel] [PATCH 03/18] vl: Move init_timer_alarm() earlier |
Date: |
Thu, 19 Jul 2012 13:53:18 -0500 |
From: Corey Minyard <address@hidden>
The timers may be used in initialization, so move them earlier so they
are ready. A reconnect options will be added to qemu-char, and it uses
a timer, but the timer alarm wasn't initialized yet.
Signed-off-by: Corey Minyard <address@hidden>
---
vl.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/vl.c b/vl.c
index 52b6588..0f0bcd9 100644
--- a/vl.c
+++ b/vl.c
@@ -3245,6 +3245,11 @@ int main(int argc, char **argv, char **envp)
qemu_set_version(machine->hw_version);
}
+ if (init_timer_alarm() < 0) {
+ fprintf(stderr, "could not initialize alarm timer\n");
+ exit(1);
+ }
+
/* Init CPU def lists, based on config
* - Must be called after all the qemu_read_config_file() calls
* - Must be called before list_cpus()
@@ -3422,11 +3427,6 @@ int main(int argc, char **argv, char **envp)
os_set_line_buffering();
- if (init_timer_alarm() < 0) {
- fprintf(stderr, "could not initialize alarm timer\n");
- exit(1);
- }
-
#ifdef CONFIG_SPICE
/* spice needs the timers to be initialized by this point */
qemu_spice_init();
--
1.7.4.1
- Re: [Qemu-devel] [PATCH 09/18] qdev: Add a pre-firmware init capability, (continued)
- [Qemu-devel] [PATCH 05/18] qemu-char: Allow a chardev to reconnect if disconnected, minyard, 2012/07/19
- [Qemu-devel] [PATCH 11/18] Add a base IPMI interface, minyard, 2012/07/19
- [Qemu-devel] [PATCH 03/18] vl: Move init_timer_alarm() earlier,
minyard <=
- [Qemu-devel] [PATCH 02/18] pc: move SMBIOS setup to after device init, minyard, 2012/07/19
- [Qemu-devel] [PATCH 14/18] IPMI: Add a BT low-level interface, minyard, 2012/07/19
- [Qemu-devel] [PATCH 18/18] IPMI: Add documentation., minyard, 2012/07/19
- [Qemu-devel] [PATCH 12/18] IPMI: Add a PC ISA type structure, minyard, 2012/07/19
- [Qemu-devel] [PATCH 17/18] IPMI: Add tests, minyard, 2012/07/19
- [Qemu-devel] [PATCH 08/18] qemu-char: Close fd at end of file, minyard, 2012/07/19
- [Qemu-devel] [PATCH 16/18] IPMI: Add an external connection simulation interface, minyard, 2012/07/19
- [Qemu-devel] [PATCH 13/18] IPMI: Add a KCS low-level interface, minyard, 2012/07/19