qemu-patch-raspberry4/include/migration
Halil Pasic 07d4e69147 migration/vmstate: fix array of ptr with nullptrs
Make VMS_ARRAY_OF_POINTER cope with null pointers. Previously the
reward for trying to migrate an array with some null pointers in it was
an illegal memory access, that is a swift and painless death of the
process.  Let's make vmstate cope with this scenario.

The general approach is, when we encounter a null pointer (element),
instead of following the pointer to save/load the data behind it, we
save/load a placeholder. This way we can detect if we expected a null
pointer at the load side but not null data was saved instead.

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: Guenther Hutzl <hutzl@linux.vnet.ibm.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20170222160119.52771-4-pasic@linux.vnet.ibm.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2017-02-28 11:29:00 +00:00
..
block.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
colo.h COLO: fix setting checkpoint-delay not working properly 2017-02-13 17:27:13 +00:00
cpu.h migration: Add VMSTATE_UINTTL_TEST() 2016-11-23 12:00:48 +11:00
failover.h COLO: Implement the process of failover for primary VM 2016-10-30 15:17:39 +05:30
migration.h COLO: Shutdown related socket fd while do failover 2017-02-13 17:27:13 +00:00
page_cache.h xbzrle: optimize XBZRLE to decrease the cache misses 2015-01-15 17:49:43 +05:30
postcopy-ram.h Postcopy: Mark nohugepage before discard 2015-11-10 15:00:28 +01:00
qemu-file.h add 'release-ram' migrate capability 2017-02-13 17:27:13 +00:00
qjson.h migration/qjson: Drop gratuitous use of QOM 2016-05-23 14:16:12 +05:30
vmstate.h migration/vmstate: fix array of ptr with nullptrs 2017-02-28 11:29:00 +00:00