From: Andy Lutomirski <luto@kernel.org>
To: x86@kernel.org
Cc: Borislav Petkov <bp@alien8.de>,
linux-kernel@vger.kernel.org, Megha <megha.dey@intel.com>,
Andy Lutomirski <luto@kernel.org>
Subject: [PATCH 0/2] x86/vdso: RDPID support and a test
Date: Wed, 16 Nov 2016 10:23:26 -0800 [thread overview]
Message-ID: <cover.1479320367.git.luto@kernel.org> (raw)
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
next reply other threads:[~2016-11-16 18:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-16 18:23 Andy Lutomirski [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1479320367.git.luto@kernel.org \
--to=luto@kernel.org \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=megha.dey@intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.