macio: add dma_active to VMStateDescription
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 6 Jan 2016 20:37:24 +0000 (20:37 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 30 Jan 2016 12:37:36 +0000 (23:37 +1100)
Make sure that we include the value of dma_active in the migration stream.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: John Snow <jsnow@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ide/macio.c

index bfdc37747c4de3ddc0d977af5acb925d04e05947..1725e5b23f741ccb09ed5118f3b9cdc4a1d90d3b 100644 (file)
@@ -517,11 +517,12 @@ static const MemoryRegionOps pmac_ide_ops = {
 
 static const VMStateDescription vmstate_pmac = {
     .name = "ide",
-    .version_id = 3,
+    .version_id = 4,
     .minimum_version_id = 0,
     .fields = (VMStateField[]) {
         VMSTATE_IDE_BUS(bus, MACIOIDEState),
         VMSTATE_IDE_DRIVES(bus.ifs, MACIOIDEState),
+        VMSTATE_BOOL(dma_active, MACIOIDEState),
         VMSTATE_END_OF_LIST()
     }
 };