for some devices to do live migration, it is needed to do something immediately before vcpu stops. add a notification here.
Signed-off-by: Yan Zhao <yan.y.z...@intel.com> --- cpus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpus.c b/cpus.c index b09b702..d5d4abe 100644 --- a/cpus.c +++ b/cpus.c @@ -1068,6 +1068,7 @@ static int do_vm_stop(RunState state, bool send_stop) int ret = 0; if (runstate_is_running()) { + vm_state_notify(1, state); cpu_disable_ticks(); pause_all_vcpus(); runstate_set(state); -- 2.7.4