qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: "Marcelo Tosatti" <mtosatti@redhat.com>,
	"Marcin Gibuła" <m.gibula@beyond.pl>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] [PATCH] kvmclock: Ensure time in migration never goes backward
Date: Tue, 06 May 2014 09:11:57 +0200	[thread overview]
Message-ID: <53688B3D.7030905@suse.de> (raw)
In-Reply-To: <20140505232710.GB20638@amt.cnet>


On 06.05.14 01:27, Marcelo Tosatti wrote:
> On Mon, May 05, 2014 at 08:26:04PM +0200, Marcin Gibuła wrote:
>>>> is it possible to have kvmclock jumping forward?
>>>>
>>>> Because I've reproducible case when at about 1 per 20 vm restores, VM freezes for couple of hours and then resumes with date few hundreds years ahead. Happens only with kvmclock.
>>>>
>>>> And this patch seems to fix very similar issue so maybe it's all the same bug.
>>> I'm fairly sure it is the exact same bug. Jumping backward is like jumping forward by a biiiiig amount :)
>> Hi,
>>
>> I've tested your path on my test VM... don't know if it's pure luck
>> or not, but it didn't hang with over 70 restores.
>>
>> The message "KVM Clock migrated backwards, using later time" fires
>> every time, but VM is healthy after resume.
> What is the host clocksource? (cat
> /sys/devices/system/clocksource/clocksource0/current_clocksource).
>
> And kernel version?

I've seen 3 different reports of this bug by now. One is Marcin where I 
don't have any details. One is running 3.0 plus patches and another one 
is running 3.14.

For the 3.0 case the host clock source is TSC.


Alex

  parent reply	other threads:[~2014-05-06  7:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-05 13:51 [Qemu-devel] [PATCH] kvmclock: Ensure time in migration never goes backward Alexander Graf
2014-05-05 17:46 ` Marcin Gibuła
2014-05-05 18:05   ` Alexander Graf
2014-05-05 18:26     ` Marcin Gibuła
2014-05-05 23:27       ` Marcelo Tosatti
2014-05-05 23:31         ` Marcelo Tosatti
2014-05-06  8:07           ` Marcin Gibuła
2014-05-06  7:11         ` Alexander Graf [this message]
2014-05-06  7:37         ` Marcin Gibuła
2014-05-05 23:23 ` Marcelo Tosatti
2014-05-05 23:31   ` Marcelo Tosatti
2014-05-06  7:18     ` Alexander Graf
2014-05-06 19:54       ` Marcin Gibuła
2014-05-07 23:23         ` Marcelo Tosatti
2014-05-07 23:21       ` Marcelo Tosatti
2014-05-07 23:29         ` Alexander Graf
2014-05-06  7:16   ` Alexander Graf
2014-05-07 10:04     ` Nick Thomas
2014-05-08  1:33 ` Marcelo Tosatti
2014-05-08  7:21   ` Alexander Graf
2014-05-09  2:28     ` Marcelo Tosatti
2014-05-09 11:53       ` Paolo Bonzini
2014-05-12 20:26         ` Alexander Graf
2014-05-14  7:26           ` Marcelo Tosatti
2014-05-14  6:47         ` Marcelo Tosatti

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=53688B3D.7030905@suse.de \
    --to=agraf@suse.de \
    --cc=kvm@vger.kernel.org \
    --cc=m.gibula@beyond.pl \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).