summary refs log tree commit diff stats
path: root/scripts/qapi-visit.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-09-19 15:19:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2011-12-22 11:53:59 +0100
commit262db38871b9a2613761cc5f05c4cf697e246a68 (patch)
tree6f411fa003a3784224c96fce790cce970d14b71e /scripts/qapi-visit.py
parent72deddc5e61e974fbf561dc704742f102b91de82 (diff)
downloadfocaccia-qemu-262db38871b9a2613761cc5f05c4cf697e246a68.tar.gz
focaccia-qemu-262db38871b9a2613761cc5f05c4cf697e246a68.zip
qemu-nbd: asynchronous operation
Using coroutines enable asynchronous operation on both the network and
the block side.  Network can be owned by two coroutines at the same time,
one writing and one reading.  On the send side, mutual exclusion is
guaranteed by a CoMutex.  On the receive side, mutual exclusion is
guaranteed because new coroutines immediately start receiving data,
and no new coroutines are created as long as the previous one is receiving.

Between receive and send, qemu-nbd can have an arbitrary number of
in-flight block transfers.  Throttling is implemented by the next
patch.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi-visit.py')
0 files changed, 0 insertions, 0 deletions