summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/trapnr.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-09-07 16:15:20 +0300
committerBorislav Petkov <bp@suse.de>2020-09-07 20:45:25 +0300
commit29dcc60f6a19fb0aaee97bd1ae2ed8a7dc6f0cfe (patch)
tree9bcd688e264f130c2928fa2a92e6729c6cd7c372 /arch/x86/include/asm/trapnr.h
parent21cf2372618ef167d8c4ae04880fb873b55b2daa (diff)
downloadlinux-29dcc60f6a19fb0aaee97bd1ae2ed8a7dc6f0cfe.tar.xz
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
Diffstat (limited to 'arch/x86/include/asm/trapnr.h')
-rw-r--r--arch/x86/include/asm/trapnr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/trapnr.h b/arch/x86/include/asm/trapnr.h
index 082f45631fa9..f5d2325aa0b7 100644
--- a/arch/x86/include/asm/trapnr.h
+++ b/arch/x86/include/asm/trapnr.h
@@ -26,6 +26,7 @@
#define X86_TRAP_XF 19 /* SIMD Floating-Point Exception */
#define X86_TRAP_VE 20 /* Virtualization Exception */
#define X86_TRAP_CP 21 /* Control Protection Exception */
+#define X86_TRAP_VC 29 /* VMM Communication Exception */
#define X86_TRAP_IRET 32 /* IRET Exception */
#endif