summaryrefslogtreecommitdiffstats
path: root/include/qemu/coroutine.h
diff options
context:
space:
mode:
authorPeter Maydell2017-04-11 14:27:05 +0200
committerPeter Maydell2017-04-11 14:27:05 +0200
commitaa388ddc36e8032f41cd17bef88cc3ebaeba77c9 (patch)
treeec6ce58ff71332901a8ab5957c5221c66440a9ac /include/qemu/coroutine.h
parentMerge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170411-1' into... (diff)
parentsheepdog: Use bdrv_coroutine_enter before BDRV_POLL_WHILE (diff)
downloadqemu-aa388ddc36e8032f41cd17bef88cc3ebaeba77c9.tar.gz
qemu-aa388ddc36e8032f41cd17bef88cc3ebaeba77c9.tar.xz
qemu-aa388ddc36e8032f41cd17bef88cc3ebaeba77c9.zip
Merge remote-tracking branch 'remotes/famz/tags/block-pull-request' into staging
# gpg: Signature made Tue 11 Apr 2017 13:10:55 BST # gpg: using RSA key 0xCA35624C6A9171C6 # gpg: Good signature from "Fam Zheng <famz@redhat.com>" # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 5003 7CB7 9706 0F76 F021 AD56 CA35 624C 6A91 71C6 * remotes/famz/tags/block-pull-request: sheepdog: Use bdrv_coroutine_enter before BDRV_POLL_WHILE block: Fix bdrv_co_flush early return block: Use bdrv_coroutine_enter to start I/O coroutines qemu-io-cmds: Use bdrv_coroutine_enter blockjob: Use bdrv_coroutine_enter to start coroutine block: Introduce bdrv_coroutine_enter async: Introduce aio_co_enter coroutine: Extract qemu_aio_coroutine_enter tests/block-job-txn: Don't start block job before adding to txn block: Quiesce old aio context during bdrv_set_aio_context block: Make bdrv_parent_drained_begin/end public Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/qemu/coroutine.h')
-rw-r--r--include/qemu/coroutine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h
index e60beaff81..a4509bd977 100644
--- a/include/qemu/coroutine.h
+++ b/include/qemu/coroutine.h
@@ -77,6 +77,11 @@ void qemu_coroutine_enter(Coroutine *coroutine);
void qemu_coroutine_enter_if_inactive(Coroutine *co);
/**
+ * Transfer control to a coroutine and associate it with ctx
+ */
+void qemu_aio_coroutine_enter(AioContext *ctx, Coroutine *co);
+
+/**
* Transfer control back to a coroutine's caller
*
* This function does not return until the coroutine is re-entered using