Re: [PATCH v3 02/16] x86/tdx: Add helpers to check return status codes

From: Edgecombe, Rick P
Date: Thu Sep 25 2025 - 19:24:45 EST


On Tue, 2025-09-23 at 14:19 +0800, Binbin Wu wrote:
> > +static inline u64 TDX_STATUS(u64 err)
> > +{
> > + return err & TDX_STATUS_MASK;
> > +}
>
> TDX_STATUS() will be called in noinstr range.
> I suppose __always_inline is still needed even if it's a single statement
> function.

Oh yea, good catch.