aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-24 18:03:25 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-24 18:03:25 +0000
commit3fcf7b6bedd94234cab2b9f0bececa7141c0ece3 (patch)
treeb03d98831954433a47e9cacd7aee3ceba348d386 /vl.c
parent6a4955a813467089549f865600284e6be0d018fc (diff)
qemu: introduce qemu_init_main_loop (Marcelo Tosatti)
Hook to allow iothread initialization. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7239 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 437f41af37..dbdbefb759 100644
--- a/vl.c
+++ b/vl.c
@@ -3718,6 +3718,11 @@ void qemu_notify_event(void)
}
}
+static int qemu_init_main_loop(void)
+{
+ return 0;
+}
+
#ifdef _WIN32
static void host_main_loop_wait(int *timeout)
{
@@ -5145,6 +5150,10 @@ int main(int argc, char **argv, char **envp)
if (smp_cpus > 1)
kqemu_allowed = 0;
#endif
+ if (qemu_init_main_loop()) {
+ fprintf(stderr, "qemu_init_main_loop failed\n");
+ exit(1);
+ }
linux_boot = (kernel_filename != NULL);
net_boot = (boot_devices_bitmap >> ('n' - 'a')) & 0xF;