projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73534f2
)
Add VMState support to run a function after load
author
Juan Quintela
<quintela@redhat.com>
Thu, 20 Aug 2009 17:42:40 +0000
(19:42 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 28 Aug 2009 01:30:22 +0000
(20:30 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/hw.h
patch
|
blob
|
history
savevm.c
patch
|
blob
|
history
diff --git
a/hw/hw.h
b/hw/hw.h
index
73f2f43
..
f3cc981
100644
(file)
--- a/
hw/hw.h
+++ b/
hw/hw.h
@@
-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;
};
diff --git
a/savevm.c
b/savevm.c
index
d953c4a
..
2b4054a
100644
(file)
--- a/
savevm.c
+++ b/
savevm.c
@@
-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;
}