]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/prom_init: Add the ESM call to prom_init
authorRam Pai <linuxram@us.ibm.com>
Tue, 20 Aug 2019 02:13:14 +0000 (23:13 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Aug 2019 23:54:35 +0000 (09:54 +1000)
commitcb8ee838245e2f4ae77efdbdc6ded05829fa77bb
treecf608fdb3f15838e9e9f4014f354fdc49f97bf5c
parent4eb7c3686ca39997a5c812b2e5c594993f48c0e2
powerpc/prom_init: Add the ESM call to prom_init

Make the Enter-Secure-Mode (ESM) ultravisor call to switch the VM to secure
mode. Pass kernel base address and FDT address so that the Ultravisor is
able to verify the integrity of the VM using information from the ESM blob.

Add "svm=" command line option to turn on switching to secure mode.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
[ andmike: Generate an RTAS os-term hcall when the ESM ucall fails. ]
Signed-off-by: Michael Anderson <andmike@linux.ibm.com>
[ bauerman: Cleaned up the code a bit. ]
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-5-bauerman@linux.ibm.com
Documentation/admin-guide/kernel-parameters.txt
arch/powerpc/include/asm/ultravisor-api.h
arch/powerpc/kernel/prom_init.c