summaryrefslogtreecommitdiffstats
path: root/qemu-coroutine-lock.c
Commit message (Collapse)AuthorAgeFilesLines
* aio: introduce AioContext, move bottom halves therePaolo Bonzini2012-10-301-1/+1
| | | | | | | | | | | | Start introducing AioContext, which will let us remove globals from aio.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 same throughout the lifetime. qemu_bh_new is just a wrapper that uses a global context. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* coroutine: add qemu_co_queue_restart_all()Stefan Hajnoczi2011-12-051-7/+8
| | | | | | | | | It's common to wake up all waiting coroutines. Introduce the qemu_co_queue_restart_all() function to do this instead of looping over qemu_co_queue_next() in every caller. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* CoQueue: introduce qemu_co_queue_wait_insert_headZhi Yong Wu2011-12-051-0/+8
| | | | | | Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* main-loop: create main-loop.hPaolo Bonzini2011-10-211-0/+1
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* coroutine: Add CoRwlock supportAneesh Kumar K.V2011-08-231-0/+44
| | | | | Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* coroutines: Use one global bottom half for CoQueueKevin Wolf2011-08-021-13/+6
| | | | | | | | | | Now that AsyncContexts don't exist any more, we can use one global bottom half for restarting coroutines instead of allocating a new one every time (before removing AsyncContexts, the problem with having a global BH was that it had to belong to a single AsyncContexts and wouldn't be executed in a different one - which leads to deadlocks) Signed-off-by: Kevin Wolf <kwolf@redhat.com>
* coroutines: LocksKevin Wolf2011-08-021-0/+124
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
OpenPOWER on IntegriCloud