Re: [Qemu-devel] [QEMU PATCH v7 2/3] migration: migrate QTAILQ

2016-10-26 Thread Halil Pasic
On 10/22/2016 12:52 AM, Jianjun Duan wrote: > +#define RAW_FIELD(base, offset) > \ > +((char *) (base) + offset) > + Seems you partially adopted Paolo's suggestion for improving the macros. Is there a particular reason why you did not follo

[Qemu-devel] [QEMU PATCH v7 2/3] migration: migrate QTAILQ

2016-10-21 Thread Jianjun Duan
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. This