+14
−14
Loading
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>