x86/sev-es: Setup GHCB-based boot #VC handler
Add the infrastructure to handle #VC exceptions when the kernel runs on virtual addresses and has mapped a GHCB. This handler will be used until the runtime #VC handler takes over. Since the handler runs very early, disable instrumentation for sev-es.c. [ bp: Make vc_ghcb_invalidate() __always_inline so that it can be inlined in noinstr functions like __sev_es_nmi_complete(). ] Signed-off-by:Joerg Roedel <jroedel@suse.de> Signed-off-by:
Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200908123816.GB3764@8bytes.org
Showing
- arch/x86/include/asm/realmode.h 3 additions, 0 deletionsarch/x86/include/asm/realmode.h
- arch/x86/include/asm/segment.h 1 addition, 1 deletionarch/x86/include/asm/segment.h
- arch/x86/include/asm/sev-es.h 2 additions, 0 deletionsarch/x86/include/asm/sev-es.h
- arch/x86/kernel/Makefile 2 additions, 0 deletionsarch/x86/kernel/Makefile
- arch/x86/kernel/head64.c 8 additions, 0 deletionsarch/x86/kernel/head64.c
- arch/x86/kernel/head_64.S 36 additions, 0 deletionsarch/x86/kernel/head_64.S
- arch/x86/kernel/sev-es-shared.c 7 additions, 7 deletionsarch/x86/kernel/sev-es-shared.c
- arch/x86/kernel/sev-es.c 116 additions, 0 deletionsarch/x86/kernel/sev-es.c
- arch/x86/mm/extable.c 1 addition, 0 deletionsarch/x86/mm/extable.c
Loading
Please register or sign in to comment