diff options
author | Alexander Egorenkov <egorenar@linux.ibm.com> | 2021-07-05 19:37:25 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-07-27 09:39:14 +0200 |
commit | 42c89439b9fa0368fabd4e1564bdb4a05aeed7eb (patch) | |
tree | eccfb629ce29efff77b396d3ed708c6ead1fedbb /arch/s390/boot/uv.c | |
parent | c5cf505446db70247a0beb5e70693a5f4754894d (diff) | |
download | lwn-42c89439b9fa0368fabd4e1564bdb4a05aeed7eb.tar.gz lwn-42c89439b9fa0368fabd4e1564bdb4a05aeed7eb.zip |
s390/boot: disable Secure Execution in dump mode
A dump kernel is neither required nor able to support Secure Execution.
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>
Diffstat (limited to 'arch/s390/boot/uv.c')
-rw-r--r-- | arch/s390/boot/uv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c index 3156f78b136a..5aea68d6d75d 100644 --- a/arch/s390/boot/uv.c +++ b/arch/s390/boot/uv.c @@ -1,8 +1,10 @@ // SPDX-License-Identifier: GPL-2.0 #include <asm/uv.h> +#include <asm/boot_data.h> #include <asm/facility.h> #include <asm/sections.h> +#include "boot.h" #include "uv.h" /* will be used in arch/s390/kernel/uv.c */ @@ -71,4 +73,10 @@ void adjust_to_uv_max(unsigned long *vmax) if (has_uv_sec_stor_limit()) *vmax = min_t(unsigned long, *vmax, uv_info.max_sec_stor_addr); } + +void sanitize_prot_virt_host(void) +{ + if (OLDMEM_BASE || (ipl_block_valid && is_ipl_block_dump())) + prot_virt_host = 0; +} #endif |