[PATCHv7 05/16] x86/kexec: Keep CR4.MCE set during kexec for TDX guest

Thomas Gleixner tglx at linutronix.de
Thu Feb 22 14:04:56 PST 2024


On Mon, Feb 12 2024 at 12:44, Kirill A. Shutemov wrote:

> TDX guests are not allowed to clear CR4.MCE. Attempt to clear it leads
> to #VE.
>
> Use alternatives to keep the flag during kexec for TDX guests.
>
> The change doesn't affect non-TDX-guest environments.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>
> Reviewed-by: Kai Huang <kai.huang at intel.com>

Reviewed-by: Thomas Gleixner <tglx at linutronix.de>



More information about the kexec mailing list