replay: allow replay stopping and restarting

This patch fixes bug with stopping and restarting replay
through monitor.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20160926080815.6992.71818.stgit@PASHA-ISP>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Pavel Dovgalyuk 2016-09-26 11:08:16 +03:00 committed by Paolo Bonzini
parent 306e196fa2
commit 6d0ceb80ff
8 changed files with 29 additions and 12 deletions

1
cpus.c
View file

@ -750,6 +750,7 @@ static int do_vm_stop(RunState state)
}
bdrv_drain_all();
replay_disable_events();
ret = blk_flush_all();
return ret;