From: Paolo Bonzini <pbonzini@redhat.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
kvm@vger.kernel.org,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Juergen Gross <jgross@suse.com>,
linux-kernel@vger.kernel.org
Subject: Re: system time goes weird in kvm guest after host suspend/resume
Date: Fri, 5 Jun 2020 10:09:24 +0200 [thread overview]
Message-ID: <4c3c4a5a-e11b-1a27-0e25-9696e407bd0a@redhat.com> (raw)
In-Reply-To: <CAJfpegvwBx49j9XwJZXcSUK=V9oHES31zB2sev0xwS4wfhah-g@mail.gmail.com>
On 05/06/20 09:35, Miklos Szeredi wrote:
>> time(2) instead should actually be gettimeofday(2), which just returns
>> tk->xtime_sec. So the problem is the nanosecond part which is off by
>> 2199*10^9 nanoseconds, and that is suspiciously close to 2^31...
> Yep: looking at the nanosecond values as well, the difference is
> exactly 2199023255552 which is 2^41.
Umpf, I was off by 3, it's not related to 2^31. But yeah the cause of
the bug seems to be the botched nanosecond part, which I'm sure is not
supposed to be much bigger than 10^9.
Paolo
next prev parent reply other threads:[~2020-06-05 8:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 19:45 Miklos Szeredi
2020-05-28 20:43 ` Thomas Gleixner
2020-05-29 9:51 ` Miklos Szeredi
2020-05-29 9:57 ` Miklos Szeredi
2020-05-29 12:21 ` Thomas Gleixner
2020-05-29 12:31 ` Miklos Szeredi
2020-05-29 12:33 ` Miklos Szeredi
2020-06-03 15:41 ` Thomas Gleixner
2020-06-03 15:45 ` Thomas Gleixner
2020-06-04 17:30 ` Thomas Gleixner
2020-06-04 19:28 ` Miklos Szeredi
2020-06-04 20:14 ` Paolo Bonzini
2020-06-05 7:35 ` Miklos Szeredi
2020-06-05 8:09 ` Paolo Bonzini [this message]
2020-06-05 10:11 ` Thomas Gleixner
2020-06-05 10:21 ` Miklos Szeredi
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=4c3c4a5a-e11b-1a27-0e25-9696e407bd0a@redhat.com \
--to=pbonzini@redhat.com \
--cc=jgross@suse.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=tglx@linutronix.de \
--cc=vincenzo.frascino@arm.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
all inboxes | Powered by JetHome®