[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 0/4] VMS_ARRAY_OF_POINTER with null pointers
From: |
Halil Pasic |
Subject: |
[Qemu-devel] [RFC PATCH 0/4] VMS_ARRAY_OF_POINTER with null pointers |
Date: |
Fri, 21 Oct 2016 16:37:37 +0200 |
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
- [Qemu-devel] [RFC PATCH 0/4] VMS_ARRAY_OF_POINTER with null pointers,
Halil Pasic <=
[Qemu-devel] [RFC PATCH 1/4] tests/test-vmstate.c: add save_buffer util func, Halil Pasic, 2016/10/21