Re: [PATCH v5 06/12] x86/tdx: Get TD execution environment information via TDINFO

From: Andi Kleen
Date: Fri Aug 20 2021 - 14:58:43 EST



On 8/20/2021 11:29 AM, Kuppuswamy, Sathyanarayanan wrote:


On 8/20/21 10:35 AM, Borislav Petkov wrote:
Ok, put that as a comment above it to explain why it cannot continue.
Also, make sure you issue an error message before it explodes so that
the user knows.

Ok. I will fix this in next version.


Without working TDCALLs the error message won't appear anywhere. The only practical way to debug such a problem is a kernel debugger.

Also printing an error message might end up recursing because the console write would trigger TDCALL again, or eventually stop because the console lock is already taken. In any case it won't work.


-Andi