History | View | Annotate | Download (11.6 kB)
aio: introduce AioContext, move bottom halves there
Start introducing AioContext, which will let us remove globals fromaio.c/async.c, and introduce multiple I/O threads.
The bottom half functions now take an additional AioContext argument.A bottom half is created with a specific AioContext that remains the...
main-loop: use GSource to poll AIO file descriptors
This lets us remove the hooks for the main loop in async.c.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
main-loop: unify qemu_init_main_loop between QEMU and tools
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Switch SIG_IPI to SIGUSR1
Use SIGUSR1 unconditionally as SIG_IPI. First, ucontext coroutines tendto corrupt RT signal masks due to a 32-on-64-bit Linux kernel bug. And,second, there appears to be no advantage in using RT signals for VCPUkicking.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
main_loop_wait: block indefinitely
- remove qemu_calculate_timeout;
- explicitly size timeout to uint32_t;
- introduce slirp_update_timeout;
- pass NULL as timeout argument to select in case timeout is the maximumvalue;
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>...
main-loop: interrupt wait when data arrives on a socket
Right now, the main loop is not interrupted when data arrives on asocket. To fix this, register each socket to interrupt the main loopwith WSAEventSelect. This does not replace select, it only communicates...
main-loop: For tools, initialize timers as part of qemu_init_main_loop()
In some cases initializing the alarm timers can lead to non-negligableoverhead from programs that link against qemu-tool.o. At least,setting a max-resolution WinMM alarm timer via mm_start_timer() (the...
link the main loop and its dependencies into the tools
Using the main loop code from QEMU enables tools to operate fullyasynchronously. Advantages include better Windows portability (for somedefinition of portability) over glib's.
fix spelling in main directory
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
main-loop: create main-loop.h
main-loop: create main-loop.c