Received: from eggs.gnu.org ([2001:4830:134:3::10]:45326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzntZ-0003Z8-VW for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:51:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzntW-0000zf-TU for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:51:14 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50771) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzntW-0000z8-Ju for qemu-devel@nongnu.org; Thu, 27 Oct 2016 12:51:10 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9RGmjtT096563 for ; Thu, 27 Oct 2016 12:51:08 -0400 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0a-001b2d01.pphosted.com with ESMTP id 26bkh1sfma-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 27 Oct 2016 12:51:08 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Oct 2016 10:51:07 -0600 References: <1477090378-31597-1-git-send-email-duanj@linux.vnet.ibm.com> <1477090378-31597-3-git-send-email-duanj@linux.vnet.ibm.com> <0dd47cb7-d83f-3f11-feab-e91be817c973@redhat.com> From: Jianjun Duan Date: Thu, 27 Oct 2016 09:50:58 -0700 MIME-Version: 1.0 In-Reply-To: <0dd47cb7-d83f-3f11-feab-e91be817c973@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Message-Id: <02103407-1f60-4a56-f34d-bc2541c3ca78@linux.vnet.ibm.com> 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: Paolo Bonzini , 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 10/27/2016 05:01 AM, Paolo Bonzini wrote: > > > 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. :) > Yes. It all comes down to offset and cast. Thanks, Jianjun > Paolo >