coroutine: Clean up qemu_coroutine_enter()
authorKevin Wolf <kwolf@redhat.com>
Tue, 10 Feb 2015 10:31:52 +0000 (11:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Mar 2015 10:11:59 +0000 (11:11 +0100)
commitcd12bb567cdcd9665a5acdecd6ac8afd9a977003
tree0e87c404f617b7a4d5ea9332b20384716b53268a
parent315a1309defd8ddf910c6c17e28cbbd7faf92f2e
coroutine: Clean up qemu_coroutine_enter()

qemu_coroutine_enter() is now the only user of coroutine_swap(). Both
functions are short, so inline it.

Also, using COROUTINE_YIELD is now even more confusing because this code
is never called during qemu_coroutine_yield() any more. In fact, this
value is never read back, so we can just introduce a new COROUTINE_ENTER
which documents the purpose of the task switch better.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
include/block/coroutine_int.h
qemu-coroutine.c