diff options
author | 2022-01-13 19:44:51 +0000 | |
---|---|---|
committer | 2023-02-06 19:22:56 +0100 | |
commit | 89c568489122de996920b760c34e81b925cc8181 (patch) | |
tree | 0e850cd4c9cc0626d856c70aa97102f1d7d7429b /scripts/coverage/compare_gcov_json.py | |
parent | migration/rdma: fix return value for qio_channel_rdma_{readv,writev} (diff) | |
download | qemu-89c568489122de996920b760c34e81b925cc8181.tar.xz qemu-89c568489122de996920b760c34e81b925cc8181.zip |
migration: Add canary to VMSTATE_END_OF_LIST
We fairly regularly forget VMSTATE_END_OF_LIST markers off descriptions;
given that the current check is only for ->name being NULL, sometimes
we get unlucky and the code apparently works and no one spots the error.
Explicitly add a flag, VMS_END that should be set, and assert it is
set during the traversal.
Note: This can't go in until we update the copy of vmstate.h in slirp.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions