qemu-patch-raspberry4/migration
Dr. David Alan Gilbert b3af1bc9d2 Add qemu_get_counted_string to read a string prefixed by a count byte
and use it in loadvm_state and ram_load.

Where ever it's used, check the return and error if it failed.

Minor: ram_load was using a 257 byte array for its string, the
       maximum length is 255 bytes + 0 terminator, so fix to 256

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2015-06-12 06:54:01 +02:00
..
block.c block: Ensure consistent bitmap function prototypes 2015-04-28 15:36:10 +02:00
exec.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
fd.c Handle bi-directional communication for fd migration 2015-01-16 13:06:17 +05:30
Makefile.objs Split the QEMU buffered file code out 2014-12-16 17:47:36 +05:30
migration.c migration: Remove duplicated assignment of SETUP status 2015-06-12 06:42:34 +02:00
qemu-file-buf.c migration: Remove unused functions 2015-03-17 15:20:37 +01:00
qemu-file-internal.h Split struct QEMUFile out 2014-12-16 17:47:36 +05:30
qemu-file-stdio.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30
qemu-file-unix.c socket shutdown 2015-01-16 13:06:17 +05:30
qemu-file.c Add qemu_get_counted_string to read a string prefixed by a count byte 2015-06-12 06:54:01 +02:00
ram.c arch_init: Clean up the duplicate variable 'len' defining in ram_load() 2015-06-12 06:42:34 +02:00
rdma.c rdma: Fix qemu crash when IPv6 address is used for migration 2015-06-12 06:42:34 +02:00
savevm.c Add qemu_get_counted_string to read a string prefixed by a count byte 2015-06-12 06:54:01 +02:00
tcp.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
unix.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
vmstate.c migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
xbzrle.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30