[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v10 03/24] replay: disable default snapshot for reco
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v10 03/24] replay: disable default snapshot for record/replay |
Date: |
Thu, 17 Jan 2019 10:37:07 +0300 |
User-agent: |
StGit/0.17.1-dirty |
From: Pavel Dovgalyuk <address@hidden>
This patch disables setting '-snapshot' option on by default
in record/replay mode. This is needed for creating vmstates in record
and replay modes.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
vl.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/vl.c b/vl.c
index bc9fbec..bea05cd 100644
--- a/vl.c
+++ b/vl.c
@@ -3196,7 +3196,13 @@ int main(int argc, char **argv, char **envp)
drive_add(IF_PFLASH, -1, optarg, PFLASH_OPTS);
break;
case QEMU_OPTION_snapshot:
- snapshot = 1;
+ {
+ Error *blocker = NULL;
+ snapshot = 1;
+ error_setg(&blocker, QERR_REPLAY_NOT_SUPPORTED,
+ "-snapshot");
+ replay_add_blocker(blocker);
+ }
break;
case QEMU_OPTION_numa:
opts = qemu_opts_parse_noisily(qemu_find_opts("numa"),
@@ -4465,7 +4471,7 @@ int main(int argc, char **argv, char **envp)
qapi_free_BlockdevOptions(bdo->bdo);
g_free(bdo);
}
- if (snapshot || replay_mode != REPLAY_MODE_NONE) {
+ if (snapshot) {
qemu_opts_foreach(qemu_find_opts("drive"), drive_enable_snapshot,
NULL, NULL);
}
- [Qemu-devel] [PATCH v10 00/24] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 01/24] replay: add missing fix for internal function, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 02/24] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 03/24] replay: disable default snapshot for record/replay,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v10 04/24] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 05/24] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 06/24] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 07/24] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 09/24] replay: provide an accessor for rr filename, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 08/24] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 10/24] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 11/24] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/01/17