Received: from eggs.gnu.org ([2001:4830:134:3::10]:33448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btrZ2-0000gZ-G3 for qemu-devel@nongnu.org; Tue, 11 Oct 2016 03:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btrZ0-0002z8-M4 for qemu-devel@nongnu.org; Tue, 11 Oct 2016 03:33:27 -0400 Sender: Paolo Bonzini References: <1475519097-27611-1-git-send-email-duanj@linux.vnet.ibm.com> <1475519097-27611-5-git-send-email-duanj@linux.vnet.ibm.com> <20161005165638.GC11921@work-vm> <20161006190156.GE3087@work-vm> <6420ae77-c205-6e24-d06e-2bbb28447b23@redhat.com> <20161007143445.GA25928@work-vm> <72a0ee2a-297c-02cd-1af5-215ad463b474@linux.vnet.ibm.com> <7e2948b3-0e29-b87c-78bd-d5070efb3342@redhat.com> <32187d3f-d1c1-b14a-ebf6-f01526359bdb@linux.vnet.ibm.com> <20161007173448.GD25928@work-vm> <769fa4cd-4960-396e-c2ae-c11508f69f0d@redhat.com> <02caeaca-5a35-4efa-39be-772d1a314d74@linux.vnet.ibm.com> <7a8f18cb-f393-fb06-605d-105fc55afb1e@linux.vnet.ibm.com> From: Paolo Bonzini Message-ID: Date: Tue, 11 Oct 2016 09:33:14 +0200 MIME-Version: 1.0 In-Reply-To: <7a8f18cb-f393-fb06-605d-105fc55afb1e@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [QEMU PATCH v5 4/6] migration: migrate QTAILQ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jianjun Duan , Halil Pasic , "Dr. David Alan Gilbert" Cc: veroniabahaa@gmail.com, peter.maydell@linaro.org, quintela@redhat.com, mst@redhat.com, mark.cave-ayland@ilande.co.uk, mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org, blauwirbel@gmail.com, dmitry@daynix.com, qemu-ppc@nongnu.org, kraxel@redhat.com, david@gibson.dropbear.id.au, amit.shah@redhat.com, kwolf@redhat.com, mreitz@redhat.com, leon.alrae@imgtec.com, aurelien@aurel32.net, rth@twiddle.net On 10/10/2016 23:29, Jianjun Duan wrote: > You are right. What we have in VMSTATE now cannot handle a recursive (or > cyclic as you call it) structure. The idea was to use VMS_LINKED to > indicate a recursive structure. Sure, but it's unnecessary. If you didn't have VMS_LINKED, no one would notice the difference. Yes, existing VMStateInfos didn't need the new arguments, the new one does. So you add the new arguments. There's no need to add the flag. Paolo > In this patch is used on a queue. It can > also be used on list or trees. > In this regard, VMS_LINKED does represent something.