]> Git Repo - qemu.git/commit
migration: migrate QTAILQ
authorJianjun Duan <[email protected]>
Thu, 19 Jan 2017 19:00:51 +0000 (11:00 -0800)
committerDr. David Alan Gilbert <[email protected]>
Tue, 24 Jan 2017 17:54:47 +0000 (17:54 +0000)
commit94869d5c528bf5df54f37cf5390bc979e6ed46fd
treedd621b855e00c12d8f1e5aef9e2da8fe7a9fa28a
parent2c21ee769e4674348560480cecc7b20f3750ee84
migration: migrate QTAILQ

Currently we cannot directly transfer a QTAILQ instance because of the
limitation in the migration code. Here we introduce an approach to
transfer such structures. We created VMStateInfo vmstate_info_qtailq
for QTAILQ. Similar VMStateInfo can be created for other data structures
such as list.

When a QTAILQ is migrated from source to target, it is appended to the
corresponding QTAILQ structure, which is assumed to have been properly
initialized.

This approach will be used to transfer pending_events and ccs_list in spapr
state.

We also create some macros in qemu/queue.h to access a QTAILQ using pointer
arithmetic. This ensures that we do not depend on the implementation
details about QTAILQ in the migration code.

Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Jianjun Duan <[email protected]>
Message-Id: <1484852453[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
include/migration/vmstate.h
include/qemu/queue.h
migration/trace-events
migration/vmstate.c
This page took 0.023469 seconds and 4 git commands to generate.