Make VMS_ARRAY_OF_POINTER cope with null pointers. Currently the reward for trying to migrate an array with some null pointers in it is an illegal memory access, that is a swift and painless death of the process. Let's make vmstate cope with this scenario at least for pointers to structs.
We need this functionality for the migration of the channel subsystem (hw/s390x/css.c). Halil Pasic (4): tests/test-vmstate.c: add save_buffer util func tests/test-vmstate.c: add array of pointer to struct migration/vmstate: fix array of pointers to struct tests/test-vmstate.c: add array of pointers to struct with NULL include/migration/vmstate.h | 2 + migration/vmstate.c | 91 ++++++++++++++++++----------- tests/test-vmstate.c | 138 ++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 185 insertions(+), 46 deletions(-) -- 2.8.4