s390/uv: add prot virt guest/host indication files
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 9 Feb 2021 14:33:12 +0000 (09:33 -0500)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Mar 2021 10:36:03 +0000 (11:36 +0100)
commit37564ed834aca26993b77b9b2a0119ec1ba6e00c
treefb8ab9497342db335a9c37a7f1ba607cce9efa8a
parent0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b
s390/uv: add prot virt guest/host indication files

Let's export the prot_virt_guest and prot_virt_host variables into the
UV sysfs firmware interface to make them easily consumable by
administrators.

prot_virt_host being 1 indicates that we did the UV
initialization (opt-in)

prot_virt_guest being 1 indicates that the UV indicates the share and
unshare ultravisor calls which is an indication that we are running as
a protected guest.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/uv.c