summaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-02-10 11:31:52 +0100
committerKevin Wolf <kwolf@redhat.com>2015-03-09 11:11:59 +0100
commitcd12bb567cdcd9665a5acdecd6ac8afd9a977003 (patch)
tree0e87c404f617b7a4d5ea9332b20384716b53268a /include/block
parent315a1309defd8ddf910c6c17e28cbbd7faf92f2e (diff)
downloadqemu-cd12bb567cdcd9665a5acdecd6ac8afd9a977003.tar.gz
qemu-cd12bb567cdcd9665a5acdecd6ac8afd9a977003.tar.bz2
qemu-cd12bb567cdcd9665a5acdecd6ac8afd9a977003.zip
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>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/coroutine_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/coroutine_int.h b/include/block/coroutine_int.h
index f133d65af8..9aa1aae5d5 100644
--- a/include/block/coroutine_int.h
+++ b/include/block/coroutine_int.h
@@ -31,6 +31,7 @@
typedef enum {
COROUTINE_YIELD = 1,
COROUTINE_TERMINATE = 2,
+ COROUTINE_ENTER = 3,
} CoroutineAction;
struct Coroutine {