Message ID | 20171114081716.27640.97141.stgit@pasha-VirtualBox (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/cpus.c b/cpus.c index 114c29b..c728f3a 100644 --- a/cpus.c +++ b/cpus.c @@ -942,9 +942,10 @@ static int do_vm_stop(RunState state) qapi_event_send_stop(&error_abort); } - bdrv_drain_all(); - replay_disable_events(); - ret = bdrv_flush_all(); + if (!replay_events_enabled()) { + bdrv_drain_all(); + ret = bdrv_flush_all(); + } return ret; }