Commit 3fcf7b6bedd94234cab2b9f0bececa7141c0ece3
1 parent
6a4955a8
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
Showing
1 changed file
with
9 additions
and
0 deletions
vl.c
@@ -3718,6 +3718,11 @@ void qemu_notify_event(void) | @@ -3718,6 +3718,11 @@ void qemu_notify_event(void) | ||
3718 | } | 3718 | } |
3719 | } | 3719 | } |
3720 | 3720 | ||
3721 | +static int qemu_init_main_loop(void) | ||
3722 | +{ | ||
3723 | + return 0; | ||
3724 | +} | ||
3725 | + | ||
3721 | #ifdef _WIN32 | 3726 | #ifdef _WIN32 |
3722 | static void host_main_loop_wait(int *timeout) | 3727 | static void host_main_loop_wait(int *timeout) |
3723 | { | 3728 | { |
@@ -5145,6 +5150,10 @@ int main(int argc, char **argv, char **envp) | @@ -5145,6 +5150,10 @@ int main(int argc, char **argv, char **envp) | ||
5145 | if (smp_cpus > 1) | 5150 | if (smp_cpus > 1) |
5146 | kqemu_allowed = 0; | 5151 | kqemu_allowed = 0; |
5147 | #endif | 5152 | #endif |
5153 | + if (qemu_init_main_loop()) { | ||
5154 | + fprintf(stderr, "qemu_init_main_loop failed\n"); | ||
5155 | + exit(1); | ||
5156 | + } | ||
5148 | linux_boot = (kernel_filename != NULL); | 5157 | linux_boot = (kernel_filename != NULL); |
5149 | net_boot = (boot_devices_bitmap >> ('n' - 'a')) & 0xF; | 5158 | net_boot = (boot_devices_bitmap >> ('n' - 'a')) & 0xF; |
5150 | 5159 |