diff options
author | Babu Moger <[email protected]> | 2019-10-07 15:48:39 -0500 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2019-10-08 09:28:37 +0200 |
commit | 9d40b85bb46a99bc95dad3a07787da93b0a018e9 (patch) | |
tree | 5a14b285520944c5d10af7f7821eb0201f451081 /lib/memory-notifier-error-inject.c | |
parent | 87d6021b814353d7b353afcc3698ffe49de7d4ec (diff) |
x86/cpufeatures: Add feature bit RDPRU on AMD
AMD Zen 2 introduces a new RDPRU instruction which is used to give
access to some processor registers that are typically only accessible
when the privilege level is zero.
ECX is used as the implicit register to specify which register to read.
RDPRU places the specified register’s value into EDX:EAX.
For example, the RDPRU instruction can be used to read MPERF and APERF
at CPL > 0.
Add the feature bit so it is visible in /proc/cpuinfo.
Details are available in the AMD64 Architecture Programmer’s Manual:
https://www.amd.com/system/files/TechDocs/24594.pdf
Signed-off-by: Babu Moger <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Aaron Lewis <[email protected]>
Cc: [email protected]
Cc: Fenghua Yu <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: "Peter Zijlstra (Intel)" <[email protected]>
Cc: [email protected]
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: x86-ml <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions