[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v10 20/24] replay: init rtc after enabling the repla
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v10 20/24] replay: init rtc after enabling the replay |
Date: |
Thu, 17 Jan 2019 10:38:44 +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 5992d8e..d5a3fca 100644
--- a/vl.c
+++ b/vl.c
@@ -3008,6 +3008,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;
@@ -3814,9 +3815,9 @@ 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);
}
break;
@@ -4022,6 +4023,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 "
- Re: [Qemu-devel] [PATCH v10 12/24] replay: introduce breakpoint at the specified step, (continued)
- [Qemu-devel] [PATCH v10 13/24] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 14/24] replay: refine replay-time module, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 15/24] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 16/24] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 18/24] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 17/24] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 19/24] replay: add BH oneshot event for block layer, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 20/24] replay: init rtc after enabling the replay,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v10 21/24] replay: document development rules, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 22/24] util/qemu-timer: refactor deadline calculation for external timers, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 23/24] replay: fix replay shutdown, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 24/24] replay: rename step-related variables and functions, Pavel Dovgalyuk, 2019/01/17
- Re: [Qemu-devel] [PATCH v10 00/24] Fixing record/replay and adding reverse debugging, no-reply, 2019/01/31