The code to read the kvmclock is an old port of the respective kernel code from the times when it did unnecessary two version loops with excessive barriers. Update it to the modern one incorporating also latest fixes which are expected to get merged in the kernel soon. While at this, introduce smp_*mb() to make the code look more like the kernel's. Roman Kagan (2): x86:barriers: add smp_*mb x86:kvmclock: sync with kernel lib/x86/asm/barrier.h | 6 +++++ x86/kvmclock.c | 68 ++++++++++++++++++++++++++++----------------------- x86/kvmclock.h | 16 ------------ 3 files changed, 44 insertions(+), 46 deletions(-) -- 2.5.5 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html