Received: from eggs.gnu.org ([2001:4830:134:3::10]:38230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzjO0-00032a-HB for qemu-devel@nongnu.org; Thu, 27 Oct 2016 08:02:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzjNx-0005i2-GI for qemu-devel@nongnu.org; Thu, 27 Oct 2016 08:02:20 -0400 References: <1477090378-31597-1-git-send-email-duanj@linux.vnet.ibm.com> <1477090378-31597-3-git-send-email-duanj@linux.vnet.ibm.com> From: Paolo Bonzini Message-ID: <0dd47cb7-d83f-3f11-feab-e91be817c973@redhat.com> Date: Thu, 27 Oct 2016 14:01:59 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [QEMU PATCH v7 2/3] migration: migrate QTAILQ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jianjun Duan , Halil Pasic , qemu-devel@nongnu.org Cc: veroniabahaa@gmail.com, peter.maydell@linaro.org, dgilbert@redhat.com, mst@redhat.com, quintela@redhat.com, mark.cave-ayland@ilande.co.uk, mdroth@linux.vnet.ibm.com, mreitz@redhat.com, blauwirbel@gmail.com, amit.shah@redhat.com, qemu-ppc@nongnu.org, kraxel@redhat.com, kwolf@redhat.com, dmitry@daynix.com, rth@twiddle.net, leon.alrae@imgtec.com, aurelien@aurel32.net, david@gibson.dropbear.id.au On 26/10/2016 18:58, Jianjun Duan wrote: >> > >> > Seems you partially adopted Paolo's suggestion for improving the >> > macros. Is there a particular reason why you did not follow it more >> > closely? I find the solution with field_at_offset(base, offset, type) >> > more readable than with RAW_FIELD(base, offset). >> > > field_at_offset is too general. We only use (void **) and (void ***) > here. Uhm, field_at_offset is exactly the same as RAW_FIELD. :) Paolo