]> git.dujemihanovic.xyz Git - linux.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)
commit7f33565b256697727fec7fc86bc1ca07683d7c81
tree7e2cb5b6442ccabec231353a21a1e524bab3576e
parent42c89439b9fa0368fabd4e1564bdb4a05aeed7eb
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