Skip to contentSkip to conversation

kvm live migration reliable?

DISCUSSION Kent Tong 3 participants 3 messages Jul 31, 2009 KVM

lore
Share & tools
lore

Kent Tong

author
#0 lore raw

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!

#1 lore raw
Quoted 3 lines

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.

#2 lore raw
In reply to Kent Tong
Quoted 6 lines · Kent Tong

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

Quoted 8 lines

Thanks!

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html