x86/boot/compressed/64: Setup a GHCB-based VC Exception handler
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:24 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:25 +0000 (19:45 +0200)
commit597cfe48212a3f110ab0f918bf59791f453e65b7
tree3ca6f66974264437ac3d4c71f95b3a21e5d159b3
parentc81d60029a1393183d2125fcb4b64831629b8864
x86/boot/compressed/64: Setup a GHCB-based VC Exception handler

Install an exception handler for #VC exception that uses a GHCB. Also
add the infrastructure for handling different exit-codes by decoding
the instruction that caused the exception and error handling.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-24-joro@8bytes.org
arch/x86/Kconfig
arch/x86/boot/compressed/Makefile
arch/x86/boot/compressed/idt_64.c
arch/x86/boot/compressed/idt_handlers_64.S
arch/x86/boot/compressed/misc.c
arch/x86/boot/compressed/misc.h
arch/x86/boot/compressed/sev-es.c
arch/x86/include/asm/sev-es.h
arch/x86/include/uapi/asm/svm.h
arch/x86/kernel/sev-es-shared.c