All of lore.kernel.org
 help / color / mirror / Atom feed
* kvm live migration reliable?
@ 2009-07-31  2:52 Kent Tong
  2009-07-31  4:13 ` Stephane Bakhos
  2009-07-31 13:11 ` Anthony Liguori
  0 siblings, 2 replies; 3+ messages in thread
From: Kent Tong @ 2009-07-31  2:52 UTC (permalink / raw)
  To: kvm

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?

Thanks!



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kvm live migration reliable?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Stephane Bakhos @ 2009-07-31  4:13 UTC (permalink / raw)
  To: Kent Tong; +Cc: kvm

> 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?

No idea about that problem.
For migration, it usually works for me, but the clock of the guest starts 
running way too fast.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kvm live migration reliable?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2009-07-31 13:11 UTC (permalink / raw)
  To: Kent Tong; +Cc: kvm

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
>   


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-31 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.