]> git.proxmox.com Git - mirror_qemu.git/commit
io: make qio_channel_yield aware of AioContexts
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Feb 2017 13:52:23 +0000 (14:52 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Feb 2017 11:14:07 +0000 (11:14 +0000)
commitc4c497d27f0be8552ae244e76ba2bce66bd2443e
tree40245bf470ac02621e371fb17ce4de52d9d47cb4
parentbf88c1247f80ac6d62710d5d0d0d9ce3a53e99ec
io: make qio_channel_yield aware of AioContexts

Support separate coroutines for reading and writing, and place the
read/write handlers on the AioContext that the QIOChannel is registered
with.

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20170213135235.12274-7-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/io/channel.h
io/channel.c