qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 2/9] Save missing fields in VMState


From: Glauber Costa
Subject: [Qemu-devel] [PATCH v2 2/9] Save missing fields in VMState
Date: Wed, 7 Oct 2009 19:08:28 -0300

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 <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]