x86/boot/compressed/64: Setup IDT in startup_32 boot path
authorJoerg Roedel <jroedel@suse.de>
Wed, 10 Mar 2021 08:43:21 +0000 (09:43 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 18 Mar 2021 15:44:46 +0000 (16:44 +0100)
commit79419e13e8082cc15d174df979a363528e31f2e7
tree07a5a1f23c3b6d2a618577929316dd4a1b2a631c
parent0c289ff81c24033777fab23019039f11e1449ba4
x86/boot/compressed/64: Setup IDT in startup_32 boot path

This boot path needs exception handling when it is used with SEV-ES.
Setup an IDT and provide a helper function to write IDT entries for
use in 32-bit protected mode.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210312123824.306-5-joro@8bytes.org
arch/x86/boot/compressed/head_64.S