[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v14 20/25] replay: init rtc after enabling the repla
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v14 20/25] replay: init rtc after enabling the replay |
Date: |
Fri, 15 Mar 2019 15:10:12 +0300 |
User-agent: |
StGit/0.17.1-dirty |
This patch postpones the call of 'configure_rtc' function. This call
uses host clock to configure the rtc, but host clock access should be
recorded when using icount record/replay mode. Therefore now rtc
is configured after switching record/replay mode on.
Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
vl.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/vl.c b/vl.c
index cb79be41ce..7d3153ece2 100644
--- a/vl.c
+++ b/vl.c
@@ -2996,6 +2996,7 @@ int main(int argc, char **argv, char **envp)
DisplayState *ds;
QemuOpts *opts, *machine_opts;
QemuOpts *icount_opts = NULL, *accel_opts = NULL;
+ QemuOpts *rtc_opts = NULL;
QemuOptsList *olist;
int optind;
const char *optarg;
@@ -3775,9 +3776,9 @@ int main(int argc, char **argv, char **envp)
old_param = 1;
break;
case QEMU_OPTION_rtc:
- opts = qemu_opts_parse_noisily(qemu_find_opts("rtc"), optarg,
- false);
- if (!opts) {
+ rtc_opts = qemu_opts_parse_noisily(qemu_find_opts("rtc"),
+ optarg, false);
+ if (!rtc_opts) {
exit(1);
}
break;
@@ -3985,6 +3986,9 @@ int main(int argc, char **argv, char **envp)
user_register_global_props();
replay_configure(icount_opts);
+ if (rtc_opts) {
+ configure_rtc(rtc_opts);
+ }
if (incoming && !preconfig_exit_requested) {
error_report("'preconfig' and 'incoming' options are "
- [Qemu-devel] [PATCH v14 15/25] replay: flush rr queue before loading the vmstate, (continued)
- [Qemu-devel] [PATCH v14 15/25] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 04/25] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 11/25] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 19/25] replay: add BH oneshot event for block layer, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 01/25] replay: add missing fix for internal function, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 24/25] replay: rename step-related variables and functions, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 03/25] replay: disable default snapshot for record/replay, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 17/25] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 05/25] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 16/25] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 20/25] replay: init rtc after enabling the replay,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v14 02/25] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 12/25] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 07/25] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/03/15
- [Qemu-devel] [PATCH v14 08/25] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/03/15
- Re: [Qemu-devel] [PATCH v14 00/25] Fixing record/replay and adding reverse debugging, no-reply, 2019/03/15