From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAiS5-0006NY-JL for qemu-devel@nongnu.org; Mon, 03 Oct 2011 09:21:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAiS4-0007Rc-Jt for qemu-devel@nongnu.org; Mon, 03 Oct 2011 09:21:01 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:56878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAiS4-0007RY-DU for qemu-devel@nongnu.org; Mon, 03 Oct 2011 09:21:00 -0400 Received: from /spool/local by us.ibm.com with XMail ESMTP for from ; Mon, 3 Oct 2011 07:20:50 -0600 Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p93DIaZj140548 for ; Mon, 3 Oct 2011 07:18:38 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p93DIWr2002496 for ; Mon, 3 Oct 2011 07:18:32 -0600 Message-ID: <4E89B627.7010008@us.ibm.com> Date: Mon, 03 Oct 2011 08:18:31 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1316443309-23843-1-git-send-email-mdroth@linux.vnet.ibm.com> <4E88C7DB.9090105@linux.vnet.ibm.com> <20111002210802.GC8072@redhat.com> <4E89B0D4.3090203@us.ibm.com> <4E89B43B.4080000@linux.vnet.ibm.com> In-Reply-To: <4E89B43B.4080000@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] New Migration Protocol using Visitor Interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: qemu-devel@nongnu.org, aliguori@linux.vnet.ibm.com, Michael Roth , "Michael S. Tsirkin" On 10/03/2011 08:10 AM, Stefan Berger wrote: > I am doing that. Indefinite length encoding *would* be a problem because you > cannot push the size onto the stack so that you could skip to the end of the > structure. For an indefinite length encoding, you just have to keep reading the stream at end_struct until you hit the canary tag ignoring anything you encounter. Regards, Anthony Liguori > > Stefan >