Statistics
| Branch: | Revision:

root / util / iov.c @ 1f8f987d

History | View | Annotate | Download (11.3 kB)

# Date Author Comment
f48869ad 04/17/2013 12:43 pm Paolo Bonzini

iov: reorganize iov_send_recv, part 3

"si" and "ei" are merged in a single variable.

Reviewed-by: Juan Quintela <>
Reviewed-by: Orit Wassermann <>
Signed-off-by: Paolo Bonzini <>

83f75c26 04/17/2013 12:43 pm Paolo Bonzini

iov: handle partial writes from sendmsg and recvmsg

Partial writes can still happen in sendmsg and recvmsg, if a
signal is received in the middle of a write. To handle this,
retry the operation with a new offset/bytes pair.

Reviewed-by: Juan Quintela <>...

cb6247a7 04/17/2013 12:43 pm Paolo Bonzini

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 <>
Reviewed-by: Orit Wassermann <>...

5209d675 04/17/2013 12:43 pm Paolo Bonzini

iov: reorganize iov_send_recv, part 2

Do not touch the "bytes" argument anymore. Instead, remember the
original length of the last iovec if we touch it, and restore it
afterwards.

This requires undoing the changes in opposite order. The previous
algorithm didn't care....

6ff66f50 03/15/2013 06:41 pm Peter Crosthwaite

iov: Factor out hexdumper

Factor out the hexdumper functionality from iov for all to use. Useful for
creating verbose debug printfery that dumps packet data.

Signed-off-by: Peter Crosthwaite <>
Message-id: ...

facf98ad 02/06/2013 04:29 pm Aneesh Kumar K.V

qemu/iovec: Don't assert if sbytes is zero

Since these values can possibly be sent from guest (for hw/9pfs), do a sanity check
on them. A 9p write request with 0 bytes caused qemu to abort without this patch

Signed-off-by: Aneesh Kumar K.V <>...

baacf047 01/12/2013 07:42 pm Paolo Bonzini

build: move libqemuutil.a components to util/

Signed-off-by: Paolo Bonzini <>