linux/Documentation
Ryan Grimm 734560ac39 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 <grimm@linux.vnet.ibm.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190820021326.6884-12-bauerman@linux.ibm.com
2019-08-30 09:55:41 +10:00
..
2019-07-16 12:21:41 -07:00
2019-07-17 06:57:52 -03:00
2019-07-17 06:57:52 -03:00
2019-07-28 09:52:35 -07:00
2019-07-16 12:21:41 -07:00
2019-07-17 06:57:52 -03:00
2019-07-17 06:57:52 -03:00
2019-07-20 09:34:55 -07:00
2019-07-17 06:57:52 -03:00
2019-07-18 12:26:59 -07:00
2019-07-16 12:21:41 -07:00
2019-07-17 06:57:52 -03:00
2019-07-17 06:57:52 -03:00
2019-06-27 21:22:15 +08:00
2019-07-17 06:57:52 -03:00