History | View | Annotate | Download (11.4 kB)
iov: handle EOF in iov_send_recv
Without this patch, iov_send_recv() never returns when do_send_recv()returns zero.
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Rename hexdump to avoid FreeBSD libutil conflict
On FreeBSD libutil is used for openpty(), but it also provides a hexdump()which conflicts with QEMU's.
Signed-off-by: Ed Maste <emaste@freebsd.org>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Message-id: 1368718348-15199-1-git-send-email-emaste@freebsd.org...
win32: add readv/writev emulation
Commit e9d8fbf (qemu-file: do not use stdio for qemu_fdopen, 2013-03-27)introduced a usage of writev, which mingw32 does not have. Even thoughqemu_fdopen itself is not used on mingw32, the future-proof solution isto add an implementation of it. This is simple and similar to how we...
iov: reorganize iov_send_recv, part 3
"si" and "ei" are merged in a single variable.
Reviewed-by: Juan Quintela <quintela@redhat.com>Reviewed-by: Orit Wassermann <owasserm@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
iov: handle partial writes from sendmsg and recvmsg
Partial writes can still happen in sendmsg and recvmsg, if asignal is received in the middle of a write. To handle this,retry the operation with a new offset/bytes pair.
Reviewed-by: Juan Quintela <quintela@redhat.com>...
iov: reorganize iov_send_recv, part 1
Once the initial part of the iov is dropped, it is not used anymore.Modify iov/iovcnt directly instead of adjusting them with the "si" variable.
Reviewed-by: Juan Quintela <quintela@redhat.com>Reviewed-by: Orit Wassermann <owasserm@redhat.com>...
iov: reorganize iov_send_recv, part 2
Do not touch the "bytes" argument anymore. Instead, remember theoriginal length of the last iovec if we touch it, and restore itafterwards.
This requires undoing the changes in opposite order. The previousalgorithm didn't care....
iov: Factor out hexdumper
Factor out the hexdumper functionality from iov for all to use. Useful forcreating verbose debug printfery that dumps packet data.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Message-id: faaac219c55ea586d3f748befaf5a2788fd271b8.1361853677.git.peter.crosthwaite@xilinx.com...
qemu/iovec: Don't assert if sbytes is zero
Since these values can possibly be sent from guest (for hw/9pfs), do a sanity checkon them. A 9p write request with 0 bytes caused qemu to abort without this patch
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>...
build: move libqemuutil.a components to util/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>