All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Kent Tong <kent@cpttm.org.mo>
Cc: kvm@vger.kernel.org
Subject: Re: kvm live migration reliable?
Date: Fri, 31 Jul 2009 08:11:44 -0500	[thread overview]
Message-ID: <4A72ED90.8060004@codemonkey.ws> (raw)
In-Reply-To: <loom.20090731T025101-636@post.gmane.org>

Kent Tong wrote:
> Hi,
>
> I was wondering the kvm live migration function is reliable? I read that if
> the TSC is not monotonically increasing, then the guest will hang. How to
> prevent this?
>   

KVM transfers the tsc as part of the CPU state so it will continue to 
increase monotonically.

However, if you're migrating between two CPUs of different frequency, 
the result will be that the TSC frequency will change.  This could have 
negative effects depends on how much the guest relies on the TSC.  The 
worst case would be if your guest was Linux and was using TSC as a time 
source.  You would likely see severe time drift.

A PV clock source (like KVM_CLOCK) helps this quite a bit.

Regards,

Anthony Liguori

> Thanks!
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


      parent reply	other threads:[~2009-07-31 13:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-31  2:52 kvm live migration reliable? Kent Tong
2009-07-31  4:13 ` Stephane Bakhos
2009-07-31 13:11 ` Anthony Liguori [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=4A72ED90.8060004@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=kent@cpttm.org.mo \
    --cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.