aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/zImage.lds.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2019-08-19 23:13:13 -0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-08-30 09:53:29 +1000
commit528229d210781b2da66c6d257a326c21099982b5 (patch)
tree9491df4a49f466e49ec74f596b5e6dac28fad979 /arch/powerpc/boot/zImage.lds.S
parentpowerpc/pseries: Introduce option to build secure virtual machines (diff)
downloadlinux-dev-528229d210781b2da66c6d257a326c21099982b5.tar.xz
linux-dev-528229d210781b2da66c6d257a326c21099982b5.zip
powerpc: Add support for adding an ESM blob to the zImage wrapper
For secure VMs, the signing tool will create a ticket called the "ESM blob" for the Enter Secure Mode ultravisor call with the signatures of the kernel and initrd among other things. This adds support to the wrapper script for adding that blob via the "-e" option to the zImage.pseries. It also adds code to the zImage wrapper itself to retrieve and if necessary relocate the blob, and pass its address to Linux via the device-tree, to be later consumed by prom_init. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [ bauerman: Minor adjustments to some comments. ] 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-4-bauerman@linux.ibm.com
Diffstat (limited to '')
-rw-r--r--arch/powerpc/boot/zImage.lds.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/boot/zImage.lds.S b/arch/powerpc/boot/zImage.lds.S
index 4ac1e36edfe7..a21f3a76e06f 100644
--- a/arch/powerpc/boot/zImage.lds.S
+++ b/arch/powerpc/boot/zImage.lds.S
@@ -68,6 +68,14 @@ SECTIONS
_initrd_end = .;
}
+ . = ALIGN(4096);
+ .kernel:esm_blob :
+ {
+ _esm_blob_start = .;
+ *(.kernel:esm_blob)
+ _esm_blob_end = .;
+ }
+
#ifdef CONFIG_PPC64_BOOT_WRAPPER
. = ALIGN(256);
.got :