Paolo Bonzini ad523bca56 iov: avoid memcpy for "simple" iov_from_buf/iov_to_buf
memcpy can take a large amount of time for small reads and writes.
For virtio it is a common case that the first iovec can satisfy the
whole read or write.  In that case, and if bytes is a constant to
avoid excessive growth of code, inline the first iteration
into the caller.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1450782213-14227-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-02-09 13:52:26 +00:00
..
2015-12-18 16:25:08 +00:00
2015-06-05 17:10:00 +02:00
2015-06-05 17:10:00 +02:00
2015-04-30 16:05:48 +03:00
2014-10-09 15:36:15 +02:00
2015-09-15 07:45:33 -07:00
2014-05-30 13:00:28 -06:00
2016-02-03 10:37:10 +00:00
2015-09-07 18:14:03 +02:00
2014-02-20 13:14:18 +01:00
2015-09-25 12:04:45 +02:00
2015-10-16 15:34:30 +02:00
2014-06-19 18:44:19 +03:00
2015-02-16 17:30:19 +01:00
2015-12-17 17:33:49 +01:00
2014-02-01 13:46:06 +04:00
2014-03-13 14:42:21 +01:00
2013-10-17 17:30:55 +02:00
2015-02-02 16:55:10 +01:00