migration: Support QLIST migration
commit4746dbf8a98d560e20dbd22d0e8405b38478b409
authorEric Auger <eric.auger@redhat.com>
Mon, 13 Jan 2020 13:48:23 +0000 (13 14:48 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 20 Jan 2020 08:10:23 +0000 (20 09:10 +0100)
tree3bc9f98a1ccb539c72fa1f6efb81ca998224e077
parent0ab994867c365db21e15f9503922c79234d8e40e
migration: Support QLIST migration

Support QLIST migration using the same principle as QTAILQ:
94869d5c52 ("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>
include/migration/vmstate.h
include/qemu/queue.h
migration/trace-events
migration/vmstate-types.c
tests/test-vmstate.c