Skip to content

x86/vdso: RDPID support and a test

Andy Lutomirski lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/vdso: Use RDPID in preference to LSL when availablearch/x86/include/asm/cpufeatures.h arch/x86/include/asm/vgtod.h+7 -10 replies
2/2selftests/x86: Add test_vdso to test getcputools/testing/selftests/x86/Makefile tools/testing/selftests/x86/test_vdso.c+124 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMegha Dey
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] x86/vdso: RDPID support and a test

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
Signature · 1 line
2.7.4