From cff09e923999e3848cdf3b2dc4e6c595523cddc6 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 20 Aug 2009 19:42:40 +0200 Subject: Add VMState support to run a function after load Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- savevm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'savevm.c') diff --git a/savevm.c b/savevm.c index d953c4af79..2b4054a123 100644 --- 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; } -- cgit v1.2.3