Skip to contentSkip to conversation

Fix ioapic vmstate

PATCH Jan Kiszka 1 participant 1 message Jun 17, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jan Kiszka

author
#1 lore raw
Quoted 16 lines · Pavel Dovgaluk

This patch fixes save/restore vmstate of IOAPIC. When irr member of IOAPICState is not saved and loaded,
restoring becomes non-deterministic, because irr is kept from state of VM that was before loading.

---
 hw/ioapic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/ioapic.c +0 -0
index 2109568..e583284 100644

hw/ioapic.c static const VMStateDescription vmstate_ioapic = { · line 213

Quoted 7 lines
hw/ioapic.c +1 -0
@@ -207,6 +207,7 @@ static const VMStateDescription vmstate_ioapic = {
     .fields      = (VMStateField []) {
         VMSTATE_UINT8(id, IOAPICState),
         VMSTATE_UINT8(ioregsel, IOAPICState),
+        VMSTATE_UINT32(irr, IOAPICState),
         VMSTATE_UINT64_ARRAY(ioredtbl, IOAPICState, IOAPIC_NUM_PINS),
         VMSTATE_END_OF_LIST()
     }

You are using an old qemu version. This was fixed via commit 35a74c5c59.

Jan