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
This commit is contained in:
committed by
Borislav Petkov
parent
c81d60029a
commit
597cfe4821
@@ -115,6 +115,12 @@ static inline void console_init(void)
|
||||
|
||||
void set_sev_encryption_mask(void);
|
||||
|
||||
#ifdef CONFIG_AMD_MEM_ENCRYPT
|
||||
void sev_es_shutdown_ghcb(void);
|
||||
#else
|
||||
static inline void sev_es_shutdown_ghcb(void) { }
|
||||
#endif
|
||||
|
||||
/* acpi.c */
|
||||
#ifdef CONFIG_ACPI
|
||||
acpi_physical_address get_rsdp_addr(void);
|
||||
@@ -144,5 +150,6 @@ extern struct desc_ptr boot_idt_desc;
|
||||
/* IDT Entry Points */
|
||||
void boot_page_fault(void);
|
||||
void boot_stage1_vc(void);
|
||||
void boot_stage2_vc(void);
|
||||
|
||||
#endif /* BOOT_COMPRESSED_MISC_H */
|
||||
|
||||
Reference in New Issue
Block a user