Add VMState support to run a function after load

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela authored and Anthony Liguori committed 2009-08-27 20:30:22 -05:00
1 parent 73534f2f68
commit cff09e9239
2 files changed
+3

No files matched your search

+2
View File
@@ -1060,6 +1060,8 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
}
field++;
}
if (vmsd->run_after_load)
return vmsd->run_after_load(opaque);
return 0;
}