All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86/vdso: RDPID support and a test
@ 2016-11-16 18:23 Andy Lutomirski
  2016-11-16 18:23 ` [PATCH 1/2] x86/vdso: Use RDPID in preference to LSL when available Andy Lutomirski
  2016-11-16 18:23 ` [PATCH 2/2] selftests/x86: Add test_vdso to test getcpu Andy Lutomirski
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Lutomirski @ 2016-11-16 18:23 UTC (permalink / raw)
  To: x86; +Cc: Borislav Petkov, linux-kernel, Megha, Andy Lutomirski

RDPID is a new instruction in unspecified future Intel processors
(sigh) that returns MSR_TSC_AUX.  This will finally let the vDSO
stop using LSL.

Patch 1 is the meat and patch 2 is the test.  Megha has kindly
tested them for me, since I don't own an unspecified Intel processor :)

Andy Lutomirski (2):
  x86/vdso: Use RDPID in preference to LSL when available
  selftests/x86: Add test_vdso to test getcpu

 arch/x86/include/asm/cpufeatures.h      |   1 +
 arch/x86/include/asm/vgtod.h            |   7 +-
 tools/testing/selftests/x86/Makefile    |   2 +-
 tools/testing/selftests/x86/test_vdso.c | 123 ++++++++++++++++++++++++++++++++
 4 files changed, 131 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/x86/test_vdso.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-17  7:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 18:23 [PATCH 0/2] x86/vdso: RDPID support and a test Andy Lutomirski
2016-11-16 18:23 ` [PATCH 1/2] x86/vdso: Use RDPID in preference to LSL when available Andy Lutomirski
2016-11-17  7:49   ` [tip:x86/asm] " tip-bot for Andy Lutomirski
2016-11-16 18:23 ` [PATCH 2/2] selftests/x86: Add test_vdso to test getcpu Andy Lutomirski
2016-11-17  7:50   ` [tip:x86/asm] selftests/x86: Add test_vdso to test getcpu() tip-bot for Andy Lutomirski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.