migration: Support QLIST migration
Support QLIST migration using the same principle as QTAILQ: 94869d5c ("migration: migrate QTAILQ"). The VMSTATE_QLIST_V macro has the same proto as VMSTATE_QTAILQ_V. The change mainly resides in QLIST RAW macros: QLIST_RAW_INSERT_HEAD and QLIST_RAW_REVERSE. Tests also are provided. Signed-off-by:Eric Auger <eric.auger@redhat.com> Reviewed-by:
Peter Xu <peterx@redhat.com> Reviewed-by:
Juan Quintela <quintela@redhat.com> Signed-off-by:
Juan Quintela <quintela@redhat.com>
Showing
- include/migration/vmstate.h 21 additions, 0 deletionsinclude/migration/vmstate.h
- include/qemu/queue.h 39 additions, 0 deletionsinclude/qemu/queue.h
- migration/trace-events 5 additions, 0 deletionsmigration/trace-events
- migration/vmstate-types.c 70 additions, 0 deletionsmigration/vmstate-types.c
- tests/test-vmstate.c 170 additions, 0 deletionstests/test-vmstate.c
Loading
Please register or sign in to comment