]> git.baikalelectronics.ru Git - kernel.git/commit
s390/uv: de-duplicate checks for Protected Host Virtualization
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 25 Jun 2021 07:51:15 +0000 (09:51 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jul 2021 07:39:14 +0000 (09:39 +0200)
commit64f1ea88cfcbf34a61e66640a11244785d19ba0a
tree7e2cb5b6442ccabec231353a21a1e524bab3576e
parente3d3dbc37b32484b384da133ef0bdb27e4201ad5
s390/uv: de-duplicate checks for Protected Host Virtualization

De-duplicate checks for Protected Host Virtualization in decompressor and
kernel.

Set prot_virt_host=0 in the decompressor in *any* of the following cases
and hand it over to the decompressed kernel:
* No explicit prot_virt=1 is given on the kernel command-line
* Protected Guest Virtualization is enabled
* Hardware support not present
* kdump or stand-alone dump

The decompressed kernel needs to use only is_prot_virt_host() instead of
performing again all checks done by the decompressor.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/uv.c
arch/s390/kernel/uv.c