]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/sev-es: Setup per-CPU GHCBs for the runtime handler
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 7 Sep 2020 13:15:42 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 9 Sep 2020 09:33:19 +0000 (11:33 +0200)
commit885689e47dfa1499b756a07237eb645234d93cf9
treead37684b76cb072a208d392192532eeb5fa736e0
parent1aa9aa8ee517e0443b06e816a4fd2d15f2113615
x86/sev-es: Setup per-CPU GHCBs for the runtime handler

The runtime handler needs one GHCB per-CPU. Set them up and map them
unencrypted.

 [ bp: Touchups and simplification. ]

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-42-joro@8bytes.org
arch/x86/include/asm/mem_encrypt.h
arch/x86/kernel/sev-es.c
arch/x86/kernel/traps.c