Re: [PATCH v9 3/4] x86/kexec: Invalidate GDT/IDT from relocate_kernel() instead of earlier
From: Huang, Kai
Date: Tue Apr 01 2025 - 05:49:23 EST
On Wed, 2025-03-26 at 14:16 +0000, David Woodhouse wrote:
> From: David Woodhouse <dwmw@xxxxxxxxxxxx>
>
> Reduce the window during which exceptions are unhandled, by leaving the
> GDT/IDT in place all the way into the relocate_kernel() function, until
> the moment that %cr3 gets replaced.
Seems the difference is only couple of instructions. Anyway ...
>
> Signed-off-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>