Re: [PATCH] x86/efi: Restore Firmware IDT in before ExitBootServices()

From: 'Joerg Roedel'
Date: Fri Aug 20 2021 - 06:20:01 EST


On Fri, Aug 20, 2021 at 09:02:46AM +0000, David Laight wrote:
> So allocate and initialise the Linux IDT - so entries can be added.
> But don't execute 'lidt' until later on.

The IDT is needed in this path to handle #VC exceptions caused by CPUID
instructions. So loading the IDT later is not an option.

Regards,

Joerg