diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2011-09-08 13:46:25 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-22 11:53:53 +0100 |
| commit | 8c5135f90e2dcf1d5c3d03106e0ac6e371ccb572 (patch) | |
| tree | 5c5976aeb886b20ea1f564cc828b448e56fcbebd /scripts/qapi-commands.py | |
| parent | 993295fedc5fefaefee9ac80e057d8bf08026ef4 (diff) | |
| download | focaccia-qemu-8c5135f90e2dcf1d5c3d03106e0ac6e371ccb572.tar.gz focaccia-qemu-8c5135f90e2dcf1d5c3d03106e0ac6e371ccb572.zip | |
sheepdog: move coroutine send/recv function to generic code
Outside coroutines, avoid busy waiting on EAGAIN by temporarily making the socket blocking. The API of qemu_recvv/qemu_sendv is slightly different from do_readv/do_writev because they do not handle coroutines. It returns the number of bytes written before encountering an EAGAIN. The specificity of yielding on EAGAIN is entirely in qemu-coroutine.c. Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions