[PATCH v9 3/4] x86/kexec: Invalidate GDT/IDT from relocate_kernel() instead of earlier

Huang, Kai kai.huang at intel.com
Tue Apr 1 02:48:39 PDT 2025


On Wed, 2025-03-26 at 14:16 +0000, David Woodhouse wrote:
> From: David Woodhouse <dwmw at amazon.co.uk>
> 
> 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 at amazon.co.uk>

Reviewed-by: Kai Huang <kai.huang at intel.com>



More information about the kexec mailing list