x86/boot/compressed/64: Add stage1 #VC handler
Add the first handler for #VC exceptions. At stage 1 there is no GHCB yet because the kernel might still be running on the EFI page table. The stage 1 handler is limited to the MSR-based protocol to talk to the hypervisor and can only support CPUID exit-codes, but that is enough to get to stage 2. [ bp: Zap superfluous newlines after rd/wrmsr instruction mnemonics. ] Signed-off-by:Joerg Roedel <jroedel@suse.de> Signed-off-by:
Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200907131613.12703-20-joro@8bytes.org
Showing
- arch/x86/boot/compressed/Makefile 1 addition, 0 deletionsarch/x86/boot/compressed/Makefile
- arch/x86/boot/compressed/idt_64.c 4 additions, 0 deletionsarch/x86/boot/compressed/idt_64.c
- arch/x86/boot/compressed/idt_handlers_64.S 4 additions, 0 deletionsarch/x86/boot/compressed/idt_handlers_64.S
- arch/x86/boot/compressed/misc.h 1 addition, 0 deletionsarch/x86/boot/compressed/misc.h
- arch/x86/boot/compressed/sev-es.c 45 additions, 0 deletionsarch/x86/boot/compressed/sev-es.c
- arch/x86/include/asm/msr-index.h 1 addition, 0 deletionsarch/x86/include/asm/msr-index.h
- arch/x86/include/asm/sev-es.h 37 additions, 0 deletionsarch/x86/include/asm/sev-es.h
- arch/x86/include/asm/trapnr.h 1 addition, 0 deletionsarch/x86/include/asm/trapnr.h
- arch/x86/kernel/sev-es-shared.c 66 additions, 0 deletionsarch/x86/kernel/sev-es-shared.c
arch/x86/boot/compressed/sev-es.c
0 → 100644
arch/x86/include/asm/sev-es.h
0 → 100644
arch/x86/kernel/sev-es-shared.c
0 → 100644
Please register or sign in to comment