Re: [PATCH v15 22/23] x86/mce: Improve error log of kernel space TDX #MC due to erratum
From: Tony Luck
Date: Thu Nov 30 2023 - 13:02:03 EST
On Fri, Nov 10, 2023 at 12:55:59AM +1300, Kai Huang wrote:
> Instead of modifying above error log, improve the error log by printing
> additional TDX related message to make the log like:
>
> ...
> [...] mce: [Hardware Error]: Machine check: Data load in unrecoverable area of kernel
> [...] mce: [Hardware Error]: Machine Check: TDX private memory error. Possible kernel bug.
This seems a reasonable addition.
> arch/x86/kernel/cpu/mce/core.c | 33 +++++++++++
Reviewed-by: Tony Luck <tony.luck@xxxxxxxxx>
[I only reviewed the hooks into mce/core.c I don't feel qualified
to dig through the TDX bits that determine this is a TD private page]
-Tony