This series is based on tip/master (commit 1912a07f8a)
SNP guests should only retrieve the AP Jump Table address from the
secrets page, not via a GHCB request as with SEV-ES guests. This series
reworks the handling accordingly, and fixes up some __init annotations
for some of the SEV routines touched by that rework.
v3:
- Address missing __init annotations (Boris)
v2:
- add handling for memremap()/ioremap() failures (Boris)
- don't mix function calls with declarations (Boris)
arch/x86/include/asm/sev.h | 35 +++++++++++++++++++++++++++++++++++
arch/x86/kernel/sev.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
arch/x86/realmode/init.c | 2 +-
drivers/virt/coco/sev-guest/sev-guest.h | 35 -----------------------------------
4 files changed, 90 insertions(+), 62 deletions(-)