RE: [RFC PATCH 03/15] x86/tdx: Add TDG.TDI.RD module call wrapper for TDX Connect

From: Duan, Zhenzhong

Date: Wed Nov 04 2026 - 05:17:13 EST




>-----Original Message-----
>From: Edgecombe, Rick P <rick.p.edgecombe@xxxxxxxxx>
>Subject: Re: [RFC PATCH 03/15] x86/tdx: Add TDG.TDI.RD module call wrapper
>for TDX Connect
>
>On Tue, 2026-11-03 at 13:11 +0000, Duan, Zhenzhong wrote:
>> > ...you are going to have justify the whole tdx_mcall_tdi_to_errno()
>thing
>> > first
>> > as discussed in the other patch.
>>
>> Well, tdx_mcall_tdi_to_errno() just translates TDX module status codes
>> nto Linux errno values. -EBUSY is the one that can indicate contention;
>> other errors are passed back to userspace.
>
>Uhhh... You said you would justify why a wider solution is needed:
>https://lore.kernel.org/all/IA3PR11MB9136DB533731D579798D3AFC92922@IA3PR11M
>B9136.namprd11.prod.outlook.com/
>
>So before you figure out which patch to put it in, probably figure out
>whether
>to have it.

I don't have a strong reason to have it, I will drop tdx_mcall_tdi_to_errno()
helper and open code the wrapper error path.