aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRyan Grimm <[email protected]>2019-08-19 23:13:21 -0300
committerMichael Ellerman <[email protected]>2019-08-30 09:55:41 +1000
commit734560ac39aeb2516419c5878856df011f794a74 (patch)
treee1a92b157035854c3787daf73e71e302bc60efda /tools/perf/scripts/python
parent256ba2c1689efd4f5383cf7ebe2f9970c198b79d (diff)
powerpc/pseries/svm: Export guest SVM status to user space via sysfs
User space might want to know it's running in a secure VM. It can't do a mfmsr because mfmsr is a privileged instruction. The solution here is to create a cpu attribute: /sys/devices/system/cpu/svm which will read 0 or 1 based on the S bit of the current CPU. Signed-off-by: Ryan Grimm <[email protected]> Signed-off-by: Thiago Jung Bauermann <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions