[PATCH] x86: kvmclock: zero initialize pvclock shared memory area

2013-06-10 Thread Igor Mammedov
=== Could be the following an acceptable fix? === kernel might hung in pvclock_clocksource_read() due to uninitialized memory might contain odd version value in following cycle: do { version = __pvclock_read_cycles(src, ret, flags); } while ((src-version 1) ||

Re: [PATCH] x86: kvmclock: zero initialize pvclock shared memory area

2013-06-10 Thread Marcelo Tosatti
On Mon, Jun 10, 2013 at 06:31:11PM +0200, Igor Mammedov wrote: === Could be the following an acceptable fix? === Read of kvmclock should return proper value from hypervisor: system timestamp + tsc delta. Should find the offender site and have it register MSR_KVM_SYSTEM_TIME before reading