cuda.c: include adb_poll_timer in VMStateDescription
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 9 Feb 2015 22:40:46 +0000 (22:40 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 14:00:05 +0000 (15:00 +0100)
Make sure that we include the adb_poll_timer when saving the VM state for
client OSs that use it, e.g. Darwin.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/misc/macio/cuda.c

index 47d9771a045cf2bb0889e378238727d7fe75c81c..f3984e3a20aa7eca642cc1e7b2aecd037c928564 100644 (file)
@@ -638,8 +638,8 @@ static const VMStateDescription vmstate_cuda_timer = {
 
 static const VMStateDescription vmstate_cuda = {
     .name = "cuda",
-    .version_id = 1,
-    .minimum_version_id = 1,
+    .version_id = 2,
+    .minimum_version_id = 2,
     .fields = (VMStateField[]) {
         VMSTATE_UINT8(a, CUDAState),
         VMSTATE_UINT8(b, CUDAState),
@@ -660,6 +660,7 @@ static const VMStateDescription vmstate_cuda = {
         VMSTATE_UINT32(tick_offset, CUDAState),
         VMSTATE_STRUCT_ARRAY(timers, CUDAState, 2, 1,
                              vmstate_cuda_timer, CUDATimer),
+        VMSTATE_TIMER_PTR(adb_poll_timer, CUDAState),
         VMSTATE_END_OF_LIST()
     }
 };