migration: size_t'ify some of qemu-file
commita202a4c001fd35b50d99abcc329bc9e666eb8eed
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 13 Aug 2015 10:51:33 +0000 (13 11:51 +0100)
committerAmit Shah <amit.shah@redhat.com>
Tue, 29 Sep 2015 06:03:02 +0000 (29 11:33 +0530)
treedac5691e8ef5a7ddbea5020b5123e11e0d249549
parentc50766f5a99ef7bf6c9a86cd07341c389faf7ae6
migration: size_t'ify some of qemu-file

This is a start on using size_t more in qemu-file and friends;
it fixes up QEMUFilePutBufferFunc and QEMUFileGetBufferFunc
to take size_t lengths and return ssize_t return values (like read(2))
and fixes up all the different implementations of them.

Note that I've not yet followed this deeply into bdrv_ implementations.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <1439463094-5394-5-git-send-email-dgilbert@redhat.com>
Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
include/migration/qemu-file.h
migration/qemu-file-buf.c
migration/qemu-file-stdio.c
migration/qemu-file-unix.c
migration/rdma.c
migration/savevm.c
trace-events