Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlYBL-0006e3-Dv for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:10:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlYBG-0006ci-G5 for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:10:38 -0400 Received: from [199.232.76.173] (port=41731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlYBG-0006cf-9x for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:10:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27443) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlYBF-0003PI-IE for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:10:34 -0400 Subject: Re: [Qemu-devel] The State of the SaveVM format References: <4AA7BEA7.6080906@codemonkey.ws> <4AA7C823.8080909@redhat.com> From: Markus Armbruster Date: Thu, 10 Sep 2009 03:10:28 +0200 In-Reply-To: <4AA7C823.8080909@redhat.com> (Gerd Hoffmann's message of "Wed\, 09 Sep 2009 17\:22\:11 +0200") Message-ID: <87r5ufli4b.fsf@pike.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Juan Quintela , qemu-devel@nongnu.org, "Michael S. Tsirkin" Gerd Hoffmann writes: [...] >> static void marshal_pci_irq_levels(void *opaque, const char *name, >> size_t offset, int load, int version) >> { >> if (version == 2) { >> for (i = 0; i < 4; i++) >> d->irq_state->piix3->pci_irq_levels[i] = qemu_get_be32(f); >> } >> } > >> VMSTATE_FUNC_V(irq_state->piix3->pci_irq_levels, PCII440FXState, >> marshal_pci_irq_levels, 2) > > No. I don't want any free-form C code in vmstate. That will kill > quite a few of the vmstate advantages. [...] Seconded.