Re: [PATCH] KVM: x86: fix TSC matching

2014-06-30 Thread Tomasz Grabiec
On Tue, Jun 24, 2014 at 9:42 AM, Tomasz Grabiec wrote: > > I've observed kvmclock being marked as unstable on a modern > single-socket system with a stable TSC and qemu-1.6.2 or qemu-2.0.0. > > The culprit was failure in TSC matching because of overflow of > kvm_arch::nr_vc

[PATCH] KVM: x86: fix TSC matching

2014-06-24 Thread Tomasz Grabiec
flows. Otherwise in cases TSC is not written the same number of times on each vCPU the counter could overflow and incorrectly indicate some vCPUs as being in the matched set. This scenario seems unlikely but I'm not sure if it can be disregarded. Signed-off-by: Tomasz Grabiec --- arch/x86/i

Fwd: KVM_SYSTEM_TIME clock is marked unstable on a modern single-socket system

2014-06-18 Thread Tomasz Grabiec
Hi, I'm working on OSv (https://github.com/cloudius-systems/osv), a guest operating system. I've been investigating a phenomena of KVM_SYSTEM_TIME being marked as unstable (PVCLOCK_TSC_STABLE_BIT cleared) by KVM on a modern single-socket CPU since the very beginning of guest's life time. Accordin