From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVu7-0007t8-Rl for qemu-devel@nongnu.org; Fri, 08 Jan 2016 07:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHVu2-0003bd-T7 for qemu-devel@nongnu.org; Fri, 08 Jan 2016 07:12:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVu2-0003bW-O0 for qemu-devel@nongnu.org; Fri, 08 Jan 2016 07:12:22 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 24F2D14AA3 for ; Fri, 8 Jan 2016 12:12:22 +0000 (UTC) Date: Fri, 8 Jan 2016 17:42:16 +0530 From: Amit Shah Message-ID: <20160108121216.GB17885@grmbl.mre> References: <1452083019-15141-1-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452083019-15141-1-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/2] Add VMSTATE_STRUCT_VARRAY_KNOWN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: mst@redhat.com, qemu-devel@nongnu.org, quintela@redhat.com On (Wed) 06 Jan 2016 [12:23:38], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > At the moment we have VMSTATE_STRUCT_ARRAY that requires > the field is declared as an array of fixed size. > We also have VMSTATE_STRUCT_VARRAY_UINT* that allows > a field declared as a pointer, but requires that the length > is a field member in the structure being loaded/saved. > > VMSTATE_STRUCT_VARRAY_KNOWN is for arrays defined as pointers > yet we somehow know the length of. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Amit