Michael Tokarev 1b093c480a consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistent
qemu_iovec_concat() is currently a wrapper for
qemu_iovec_copy(), use the former (with extra
"0" arg) in a few places where it is used.

Change skip argument of qemu_iovec_copy() from
uint64_t to size_t, since size of qiov itself
is size_t, so there's no way to skip larger
sizes.  Rename it to soffset, to make it clear
that the offset is applied to src.

Also change the only usage of uint64_t in
hw/9pfs/virtio-9p.c, in v9fs_init_qiov_from_pdu() -
all callers of it actually uses size_t too,
not uint64_t.

One added restriction: as for all other iovec-related
functions, soffset must point inside src.

Order of argumens is already good:
 qemu_iovec_memset(QEMUIOVector *qiov, size_t offset,
                   int c, size_t bytes)
vs:
 qemu_iovec_concat(QEMUIOVector *dst,
                   QEMUIOVector *src,
                   size_t soffset, size_t sbytes)
(note soffset is after _src_ not dst, since it applies to src;
for memset it applies to qiov).

Note that in many places where this function is used,
the previous call is qemu_iovec_reset(), which means
many callers actually want copy (replacing dst content),
not concat.  So we may want to add a wrapper like
qemu_iovec_copy() with the same arguments but which
calls qemu_iovec_reset() before _concat().

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2012-06-11 23:12:11 +04:00
..
2012-05-30 14:51:09 +02:00
2012-02-07 22:11:04 +04:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-01-22 07:27:06 +00:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-17 16:30:06 +00:00
2012-05-16 18:04:44 -03:00
2012-03-14 22:20:26 +01:00
2012-01-13 10:55:56 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-06-04 23:00:41 +02:00
2012-02-15 09:39:21 -06:00
2012-03-24 13:06:41 +00:00
2012-02-15 09:39:21 -06:00
2011-12-06 09:56:41 +00:00
2012-03-13 14:57:12 +00:00
2012-01-13 10:55:56 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-01-04 02:48:14 +01:00
2011-10-17 15:59:18 +02:00
2012-02-15 09:39:21 -06:00
2012-03-19 10:52:52 +00:00
2012-03-14 22:20:26 +01:00
2012-01-13 10:55:56 -06:00
2012-02-15 09:39:21 -06:00
2012-04-25 10:53:47 +03:00
2012-02-15 09:39:21 -06:00
2012-05-24 02:03:30 +04:00
2012-02-15 09:39:21 -06:00
2011-08-08 10:22:29 -05:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-17 11:13:05 +00:00
2012-05-25 18:21:12 +02:00
2012-02-10 10:44:52 +00:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2011-12-06 09:56:41 +00:00
2011-12-14 11:09:12 +00:00
2012-04-26 12:54:17 +04:00
2011-09-10 14:49:51 +00:00
2012-02-15 09:39:21 -06:00
2012-03-07 12:27:41 +02:00
2012-03-07 12:27:41 +02:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-19 11:30:56 +00:00
2011-10-16 11:10:48 +00:00
2012-02-15 09:39:21 -06:00
2012-03-30 08:14:11 -05:00
2012-03-30 08:14:11 -05:00
2012-02-15 09:39:21 -06:00
2012-04-28 20:51:54 +02:00
2012-02-24 13:36:04 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-06-04 23:00:45 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2011-12-14 11:08:23 +00:00
2011-12-14 11:08:23 +00:00
2011-10-21 18:14:29 +02:00
2011-10-21 18:14:29 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2011-11-28 15:38:42 +02:00
2012-03-14 22:20:26 +01:00
2011-11-28 15:38:42 +02:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-06-04 23:00:41 +02:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-02-22 09:02:19 -06:00
2012-03-14 22:20:26 +01:00
2012-05-16 18:04:44 -03:00
2012-05-21 19:22:50 +03:00
2012-05-21 19:22:50 +03:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2011-08-08 10:22:29 -05:00
2011-11-28 15:38:41 +02:00
2012-02-15 09:39:21 -06:00
2012-03-15 16:54:21 +00:00
2012-02-15 09:39:21 -06:00
2012-03-24 13:06:41 +00:00
2011-11-28 15:38:41 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-05-03 07:04:48 +02:00
2012-06-04 23:00:42 +02:00
2011-11-24 18:32:03 +02:00
2012-05-21 19:22:49 +03:00
2011-08-22 10:22:03 -05:00
2011-08-22 10:22:03 -05:00
2012-01-27 10:50:50 -06:00
2012-02-15 09:39:21 -06:00
2012-02-17 09:58:22 -06:00
2012-02-17 09:58:22 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-30 10:31:23 +00:00
2012-02-15 09:39:21 -06:00
2011-12-14 11:08:23 +00:00
2011-12-14 11:08:23 +00:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-04-07 14:00:45 +00:00
2012-04-12 11:14:29 +01:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-05-21 15:40:51 -05:00
2012-05-12 14:19:10 +02:00
2012-06-04 23:00:43 +02:00
2011-11-24 18:31:59 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-05-07 08:44:21 +02:00
2012-02-15 09:39:21 -06:00
2011-12-06 09:56:41 +00:00
2012-02-15 09:39:21 -06:00
2011-11-24 18:32:03 +02:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-03-16 00:41:15 +02:00
2012-03-16 00:41:15 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-16 00:41:28 +02:00
2012-03-16 00:41:28 +02:00
2012-01-13 10:55:56 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-06-04 23:00:45 +02:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-04-17 10:23:21 +02:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-02-04 12:45:10 +00:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-04 12:45:10 +00:00
2012-04-11 13:19:32 +03:00
2012-02-15 09:39:21 -06:00
2012-03-16 00:45:23 +02:00
2012-04-25 10:53:47 +03:00
2012-05-21 15:40:50 -05:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-01-22 07:27:06 +00:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-05-21 15:40:51 -05:00
2012-05-16 18:04:44 -03:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-02-15 09:39:21 -06:00
2012-03-14 22:20:26 +01:00
2012-03-14 22:20:26 +01:00
2012-02-15 09:39:21 -06:00
2012-03-09 07:02:50 -06:00