linux-stable/arch/x86/entry/vdso
Andy Lutomirski 6b078f5de7 x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader
The pvclock vdso code was too abstracted to understand easily
and excessively paranoid.  Simplify it for a huge speedup.

This opens the door for additional simplifications, as the vdso
no longer accesses the pvti for any vcpu other than vcpu 0.

Before, vclock_gettime using kvm-clock took about 45ns on my
machine. With this change, it takes 29ns, which is almost as
fast as the pure TSC implementation.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/6b51dcc41f1b101f963945c5ec7093d72bdac429.1449702533.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-12-11 08:56:02 +01:00
..
vdso32 Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2015-11-03 21:23:56 -08:00
.gitignore
checkundef.sh
Makefile x86/vdso: Define BUILD_VDSO while building and emit .eh_frame in asm 2015-10-09 09:41:05 +02:00
vclock_gettime.c x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader 2015-12-11 08:56:02 +01:00
vdso-layout.lds.S
vdso-note.S
vdso.lds.S
vdso2c.c x86/vdso/32: Save extra registers in the INT80 vsyscall path 2015-10-09 09:41:06 +02:00
vdso2c.h
vdso32-setup.c x86/vdso: Remove runtime 32-bit vDSO selection 2015-10-07 11:34:08 +02:00
vdsox32.lds.S
vgetcpu.c
vma.c x86/vdso: Remove runtime 32-bit vDSO selection 2015-10-07 11:34:08 +02:00