]> git.baikalelectronics.ru Git - kernel.git/commit
x86: pvclock: Really remove the sched notifier for cross-cpu migrations
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Apr 2015 11:20:18 +0000 (13:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Apr 2015 13:49:30 +0000 (15:49 +0200)
commit1d05d9bd762edf6fb36a847c3d2c5cba54c6d87f
tree2d85beb72d2ee970926f65554099764e2cdc1f9c
parent9a68de4705955c061ccaaff17e464b089b73e7f6
x86: pvclock: Really remove the sched notifier for cross-cpu migrations

This reverts commits 525126035624f0367b4c4ab6ed6f50eeff4f5ab4
and f23a44a5287a7dab6d63ad302e148bda3794deba.

The task migration notifier was originally introduced in order to support
the pvclock vsyscall with non-synchronized TSC, but KVM only supports it
with synchronized TSC.  Hence, on KVM the race condition is only needed
due to a bad implementation on the host side, and even then it's so rare
that it's mostly theoretical.

As far as KVM is concerned it's possible to fix the host, avoiding the
additional complexity in the vDSO and the (re)introduction of the task
migration notifier.

Xen, on the other hand, hasn't yet implemented vsyscall support at
all, so we do not care about its plans for non-synchronized TSC.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Suggested-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/pvclock.h
arch/x86/kernel/pvclock.c
arch/x86/vdso/vclock_gettime.c
include/linux/sched.h
kernel/sched/core.c