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

kirill.shutemov at linux.intel.com kirill.shutemov at linux.intel.com
Mon Oct 9 06:32:51 PDT 2023


On Mon, Oct 09, 2023 at 12:30:55PM +0000, Huang, Kai wrote:
> On Thu, 2023-10-05 at 16:13 +0300, 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 environments.
> 
> Nit: non-TDX-guest environments. ?

Okay, will fix.

> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>
> 
> Reviewed-by: Kai Huang <kai.huang at intel.com>

Thanks.

-- 
  Kiryl Shutsemau / Kirill A. Shutemov



More information about the kexec mailing list