From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mvegh-0001tn-VN for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mvegc-0001rl-T2 for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:46 -0400 Received: from [199.232.76.173] (port=51534 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvegc-0001ri-LF for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50350) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mvegc-0006sE-3W for qemu-devel@nongnu.org; Wed, 07 Oct 2009 18:08:42 -0400 From: Glauber Costa Date: Wed, 7 Oct 2009 19:08:28 -0300 Message-Id: <1254953315-5761-3-git-send-email-glommer@redhat.com> In-Reply-To: <1254953315-5761-2-git-send-email-glommer@redhat.com> References: <1254953315-5761-1-git-send-email-glommer@redhat.com> <1254953315-5761-2-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH v2 2/9] Save missing fields in VMState List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com irr and base_address are not saved. Bump version to two, and make sure they are part of the game here. Signed-off-by: Glauber Costa --- hw/ioapic.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/ioapic.c b/hw/ioapic.c index e37157f..d475654 100644 --- a/hw/ioapic.c +++ b/hw/ioapic.c @@ -195,12 +195,14 @@ static void ioapic_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t va static const VMStateDescription vmstate_ioapic = { .name = "ioapic", - .version_id = 1, + .version_id = 2, .minimum_version_id = 1, .minimum_version_id_old = 1, .fields = (VMStateField []) { VMSTATE_UINT8(id, IOAPICState), VMSTATE_UINT8(ioregsel, IOAPICState), + VMSTATE_UINT64_V(base_address, IOAPICState, 2), + VMSTATE_UINT32_V(irr, IOAPICState, 2), VMSTATE_UINT64_ARRAY(ioredtbl, IOAPICState, IOAPIC_NUM_PINS), VMSTATE_END_OF_LIST() } -- 1.6.2.5