QEMUSizedBuffer based QEMUFile
commitdeb22f9a4466e66ca25e90e5530cfe8544fe5bc7
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 10 Oct 2014 11:39:04 +0000 (10 12:39 +0100)
committerJuan Quintela <quintela@trasno.org>
Tue, 14 Oct 2014 07:17:06 +0000 (14 09:17 +0200)
treeccd3e60de663576fb60ed8f8de0c104294134aa9
parentb1d28ec6a7dbdaadda39d29322f0de694aeb0b74
QEMUSizedBuffer based QEMUFile

This is based on Stefan and Joel's patch that creates a QEMUFile that goes
to a memory buffer; from:

http://lists.gnu.org/archive/html/qemu-devel/2013-03/msg05036.html

Using the QEMUFile interface, this patch adds support functions for
operating on in-memory sized buffers that can be written to or read from.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
For fixes/tweeks I've done:
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/qemu-file.h
include/qemu/typedefs.h
qemu-file.c