diff options
-rw-r--r-- | hw/hw.h | 1 | ||||
-rw-r--r-- | savevm.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -306,6 +306,7 @@ struct VMStateDescription { int minimum_version_id; int minimum_version_id_old; LoadStateHandler *load_state_old; + int (*run_after_load)(void *opaque); VMStateField *fields; }; @@ -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; } |