From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MntV0-000653-Ei for qemu-devel@nongnu.org; Wed, 16 Sep 2009 08:20:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MntUw-00062W-1g for qemu-devel@nongnu.org; Wed, 16 Sep 2009 08:20:38 -0400 Received: from [199.232.76.173] (port=57909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MntUv-00062R-RP for qemu-devel@nongnu.org; Wed, 16 Sep 2009 08:20:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10132) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MntUv-0004mm-Ed for qemu-devel@nongnu.org; Wed, 16 Sep 2009 08:20:33 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8GCKVtk005925 for ; Wed, 16 Sep 2009 08:20:32 -0400 Date: Wed, 16 Sep 2009 15:18:18 +0300 From: "Michael S. Tsirkin" Message-ID: <20090916121818.GA4710@redhat.com> References: <20090916104620.GA4456@redhat.com> <20090916111845.GJ23157@redhat.com> <20090916115224.GA4628@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: optional feature List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, Gleb Natapov On Wed, Sep 16, 2009 at 02:14:32PM +0200, Juan Quintela wrote: > >> See below, we are changing the state to one table, and tables don't have > >> neither if's or whiles (we have a limited for that just walks arrays). > > > > Let's just bite the bullet and add support for if's? It's not like it's > > hard to invent 'struct vmstate_condition' or some such. > > I have to do it. The problem is not adding an optional field, is adding > it conditionally on _what_, and that _what_ should also be ideally on vmstate. > > Later, Juan. pci config is on vmstate already, I don't see a problem here. -- MST