Move copy out of qemu_peek_buffer
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 21 May 2015 12:24:15 +0000 (13:24 +0100)
committerJuan Quintela <quintela@redhat.com>
Fri, 12 Jun 2015 04:54:01 +0000 (06:54 +0200)
commit7c1e52ba6f3994dc127118f491258ce84d0beb52
treefaebb08575cf114ca6e6d949673fb7e3a2892508
parentbca7856ae8220d9f15ff0f44b97397529e26a552
Move copy out of qemu_peek_buffer

qemu_peek_buffer currently copies the data it reads into a buffer,
however a future patch wants access to the buffer without the copy,
hence rework to remove the copy to the layer above.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/qemu-file.h
migration/qemu-file.c
migration/vmstate.c