From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753838AbcKPSXe (ORCPT ); Wed, 16 Nov 2016 13:23:34 -0500 Received: from mail.kernel.org ([198.145.29.136]:49736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752282AbcKPSXc (ORCPT ); Wed, 16 Nov 2016 13:23:32 -0500 From: Andy Lutomirski To: x86@kernel.org Cc: Borislav Petkov , linux-kernel@vger.kernel.org, Megha , Andy Lutomirski Subject: [PATCH 0/2] x86/vdso: RDPID support and a test Date: Wed, 16 Nov 2016 10:23:26 -0800 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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