QEMUSizedBuffer/QEMUFile

Stefan Berger's to create 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>
Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
inet_listen_opts: add error checking

Don't use atoi() function which doesn't detect errors, switch to
strtol and error out on failures.  Also add a range check while
being at it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
usb-host: add range checks for usb-host parameters

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
enable sharing of the function between migration and bitmap dump

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
RunState: added two new flags for bitmap dump and migration process

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
bitmap dump code via QAPI framework with runstates

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
hmp interface for dirty bitmap dump

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
cancel mechanism for an already running dump bitmap process

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
set the frequency of the dump bitmap process

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>
python script for extracting bitmap from a binary file

Signed-off-by: Sanidhya Kashyap <sanidhya.iiith@gmail.com>