From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdSGA-00072j-FJ for qemu-devel@nongnu.org; Tue, 18 Aug 2009 13:14:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdSG9-00072X-T3 for qemu-devel@nongnu.org; Tue, 18 Aug 2009 13:14:10 -0400 Received: from [199.232.76.173] (port=56903 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdSG9-00072U-NT for qemu-devel@nongnu.org; Tue, 18 Aug 2009 13:14:09 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:60951) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdSG9-0007JG-Dr for qemu-devel@nongnu.org; Tue, 18 Aug 2009 13:14:09 -0400 Received: by fg-out-1718.google.com with SMTP id d23so1026522fga.8 for ; Tue, 18 Aug 2009 10:14:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Blue Swirl Date: Tue, 18 Aug 2009 20:13:47 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 4/5] New VMstate save/load infrastructure Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org On Tue, Aug 18, 2009 at 4:34 PM, Juan Quintela wrote: > This patch introduces VMState infrastructure, to convert the save/load > functions of devices to a table approach. =C2=A0This new approach has the > advantages: > - it is type-safe > - you can't have load/save functions out of sync > - will allows us to have new interesting commands, like dump , th= at > =C2=A0shows all its internal state. > - Just now, the only added type is arrays, but we can add structures. I think all the structures should be 'const'. Also VMStateField and VMStateDescription should be private to savevm.c.