diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-03-27 17:36:29 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-17 11:43:44 +0200 |
commit | 5209d6753c90a3d6411abd0729a9cca3775dce3f (patch) | |
tree | c862a6d124ea97bb122a0717fac2f784d79fd193 /hmp.c | |
parent | cb6247a7e3e07ead908d2e7fbc8848cc2e135056 (diff) |
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.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Orit Wassermann <owasserm@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hmp.c')
0 files changed, 0 insertions, 0 deletions