From: Konstantin Kostiuk <kkostiuk@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Cc: QEMU <qemu-devel@nongnu.org>, Vadim Rozenfeld <vrozenfe@redhat.com>
Subject: Re: Crash in RTC
Date: Mon, 30 Jan 2023 10:31:09 +0200 [thread overview]
Message-ID: <CAPMcbCpfg0+XjS7eDgGAgKpg2eS_ejT7xrsftku3Ad3m6rhz7A@mail.gmail.com> (raw)
In-Reply-To: <CAPMcbCp+wRecC+WPTDJyyLLWbybnAO-W40i8rRZFDGqRtBvfdg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]
ping
On Wed, Aug 24, 2022 at 5:37 PM Konstantin Kostiuk <kkostiuk@redhat.com>
wrote:
> Hi Michael and Paolo,
>
> I write to you as maintainers of mc146818rtc.c. I am working on bug
> https://bugzilla.redhat.com/show_bug.cgi?id=2054781
> and reproduced it on the current master branch.
>
> I added some print at line 202 (before assert(lost_clock >= 0),
> https://gitlab.com/qemu-project/qemu/-/blob/master/hw/rtc/mc146818rtc.c#L202)
> and got the following values:
>
> next_periodic_clock, old_period, last_periodic_clock, cur_clock,
> lost_clock, current_time
> 54439076429968, 32, 54439076429936, 54439076430178, 242,
> 1661348768010822000
> 54439076430224, 512, 54439076429712, 54439076430188, 476,
> 1661348768011117000
> 54439076430224, 32, 54439076430192, 54439076429884, -308,
> 1661348768001838000
>
> The current_time value in the last print is lower than in the previous one.
> So, the error occurs because time has gone backward.
>
> I think this is a possible situation during time synchronization.
> My question is what should we do in this case?
>
> Best Regards,
> Konstantin Kostiuk.
>
[-- Attachment #2: Type: text/html, Size: 1690 bytes --]
prev parent reply other threads:[~2023-01-30 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPMcbCp+wRecC+WPTDJyyLLWbybnAO-W40i8rRZFDGqRtBvfdg@mail.gmail.com>
[not found] ` <CAPMcbCrySmarW0GPzvSx6ZwknPK5gKJmADM9G6xTJvBHDT4o3Q@mail.gmail.com>
[not found] ` <CAPMcbCrtGETc-nKmWHHhJGx0hiAO3Yj0Lzo9sVa_W3E8eA45Rg@mail.gmail.com>
[not found] ` <CAKiOO4unENQQHp7w7MUUdTStyBS7ZFi8wFKWtpe10_GGqg1URQ@mail.gmail.com>
2022-10-27 7:49 ` Crash in RTC Konstantin Kostiuk
2023-01-30 8:31 ` Konstantin Kostiuk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPMcbCpfg0+XjS7eDgGAgKpg2eS_ejT7xrsftku3Ad3m6rhz7A@mail.gmail.com \
--to=kkostiuk@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vrozenfe@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).