[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v8 19/20] replay: init rtc after enabling the replay
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v8 19/20] replay: init rtc after enabling the replay |
Date: |
Tue, 18 Dec 2018 14:22: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 605ad89..c6aafc1 100644
--- a/vl.c
+++ b/vl.c
@@ -2979,6 +2979,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;
@@ -3788,9 +3789,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;
@@ -4003,6 +4004,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 v8 11/20] replay: introduce breakpoint at the specified step, (continued)
- [Qemu-devel] [PATCH v8 11/20] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 12/20] replay: implement replay-seek command to proceed to the desired step, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 13/20] replay: refine replay-time module, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 14/20] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 15/20] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 16/20] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 17/20] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 18/20] replay: add BH oneshot event for block layer, Pavel Dovgalyuk, 2018/12/18
- [Qemu-devel] [PATCH v8 19/20] replay: init rtc after enabling the replay,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v8 20/20] replay: document development rules, Pavel Dovgalyuk, 2018/12/18
- Re: [Qemu-devel] [PATCH v8 00/20] Fixing record/replay and adding reverse debugging, no-reply, 2018/12/24