[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 18/19] replay: init rtc after enabling the replay
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v7 18/19] replay: init rtc after enabling the replay |
Date: |
Wed, 10 Oct 2018 16:35:16 +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 | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/vl.c b/vl.c
index a3e2e47..f910072 100644
--- a/vl.c
+++ b/vl.c
@@ -2932,6 +2932,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;
@@ -3738,12 +3739,11 @@ int main(int argc, char **argv, char **envp)
warn_report("This option is ignored and will be removed soon");
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);
}
- configure_rtc(opts);
break;
case QEMU_OPTION_tb_size:
#ifndef CONFIG_TCG
@@ -3954,6 +3954,9 @@ int main(int argc, char **argv, char **envp)
loc_set_none();
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 v7 08/19] replay: provide and accessor for rr filename, (continued)
- [Qemu-devel] [PATCH v7 08/19] replay: provide and accessor for rr filename, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 09/19] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 11/19] replay: implement replay-seek command to proceed to the desired step, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 12/19] replay: refine replay-time module, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 13/19] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 10/19] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 14/19] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 15/19] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 16/19] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 17/19] replay: add BH oneshot event for block layer, Pavel Dovgalyuk, 2018/10/10
- [Qemu-devel] [PATCH v7 18/19] replay: init rtc after enabling the replay,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v7 19/19] replay: document development rules, Pavel Dovgalyuk, 2018/10/10
- Re: [Qemu-devel] [PATCH v7 00/19] Fixing record/replay and adding reverse debugging, Aleksandr Bezzubikov, 2018/10/10
- Re: [Qemu-devel] [PATCH v7 00/19] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2018/10/15