[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v15 06/24] replay: finish record/replay before closi
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v15 06/24] replay: finish record/replay before closing the disks |
Date: |
Mon, 18 Mar 2019 12:27:59 +0300 |
User-agent: |
StGit/0.17.1-dirty |
After recent updates block devices cannot be closed on qemu exit.
This happens due to the block request polling when replay is not finished.
Therefore now we stop execution recording before closing the block devices.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
replay/replay.c | 2 ++
vl.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/replay/replay.c b/replay/replay.c
index 8b172b2d1b..b75820a1c1 100644
--- a/replay/replay.c
+++ b/replay/replay.c
@@ -385,6 +385,8 @@ void replay_finish(void)
g_free(replay_snapshot);
replay_snapshot = NULL;
+ replay_mode = REPLAY_MODE_NONE;
+
replay_finish_events();
}
diff --git a/vl.c b/vl.c
index ace6230b05..cb79be41ce 100644
--- a/vl.c
+++ b/vl.c
@@ -4603,6 +4603,7 @@ int main(int argc, char **argv, char **envp)
/* No more vcpu or device emulation activity beyond this point */
vm_shutdown();
+ replay_finish();
job_cancel_sync_all();
bdrv_close_all();
- [Qemu-devel] [PATCH v15 24/24] icount: clean up cpu_can_io before jumping to the next block, (continued)
- [Qemu-devel] [PATCH v15 24/24] icount: clean up cpu_can_io before jumping to the next block, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 23/24] replay: rename step-related variables and functions, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 22/24] replay: fix replay shutdown, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 21/24] util/qemu-timer: refactor deadline calculation for external timers, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 20/24] replay: document development rules, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 18/24] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 19/24] replay: add BH oneshot event for block layer, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 17/24] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 11/24] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 08/24] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 06/24] replay: finish record/replay before closing the disks,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v15 04/24] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 16/24] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 12/24] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 13/24] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 15/24] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 14/24] replay: refine replay-time module, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 10/24] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 07/24] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 09/24] replay: provide an accessor for rr filename, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 02/24] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2019/03/18