summary refs log tree commit diff stats
path: root/hw/ide/macio.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2016-01-06 20:37:24 +0000
committerDavid Gibson <david@gibson.dropbear.id.au>2016-01-30 23:37:36 +1100
commitbb37a8e8a3a7adef2ff395d3daf7384004441340 (patch)
tree4c7f670fc752084349d21c4b0fceae0c5e63af72 /hw/ide/macio.c
parent03c1280bf5dbb0b0f6125d17b8eebe9b9e97c8d8 (diff)
downloadfocaccia-qemu-bb37a8e8a3a7adef2ff395d3daf7384004441340.tar.gz
focaccia-qemu-bb37a8e8a3a7adef2ff395d3daf7384004441340.zip
macio: add dma_active to VMStateDescription
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>
Diffstat (limited to 'hw/ide/macio.c')
-rw-r--r--hw/ide/macio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index bfdc37747c..1725e5b23f 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -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()
     }
 };