qemu/include/migration
Dr. David Alan Gilbert 89c5684891 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>
2023-02-06 19:22:56 +01:00
..
blocker.h migration: Add migrate_add_blocker_internal() 2021-11-01 22:56:44 +01:00
colo.h Fixed a QEMU hang when guest poweroff in COLO mode 2021-12-15 10:31:42 +01:00
cpu.h Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
failover.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
global_state.h Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
misc.h migration/ram: Factor out check for advised postcopy 2023-02-06 19:22:56 +01:00
qemu-file-types.h qemu-file: move qemu_{get,put}_counted_string() declarations 2019-08-14 17:33:14 +01:00
register.h migration: Remove unused threshold_size parameter 2023-02-06 19:22:56 +01:00
snapshot.h migration: introduce a delete_snapshot wrapper 2021-02-08 11:19:51 +00:00
vmstate.h migration: Add canary to VMSTATE_END_OF_LIST 2023-02-06 19:22:56 +01:00