qemu/include/migration
Dr. David Alan Gilbert 9504fb510c Add qemu_get_buffer_in_place to avoid copies some of the time
qemu_get_buffer always copies the data it reads to a users buffer,
however in many cases the file buffer inside qemu_file could be given
back to the caller, avoiding the copy.  This isn't always possible
depending on the size and alignment of the data.

Thus 'qemu_get_buffer_in_place' either copies the data to a supplied
buffer or updates a pointer to the internal buffer if convenient.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2015-11-10 14:51:48 +01:00
..
block.h migration: move include files to include/migration/ 2012-12-19 08:31:32 +01:00
migration.h Rename mis->file to from_src_file 2015-11-10 14:51:48 +01:00
page_cache.h xbzrle: optimize XBZRLE to decrease the cache misses 2015-01-15 17:49:43 +05:30
qemu-file.h Add qemu_get_buffer_in_place to avoid copies some of the time 2015-11-10 14:51:48 +01:00
vmstate.h migration: rename cancel to cleanup in SaveVMHandles 2015-11-04 13:40:13 +01:00