Re: [PATCH v13 07/22] KVM: selftests: Introduce structures for TDX guest boot parameters

From: Yosry Ahmed

Date: Fri May 22 2026 - 19:51:41 EST


> > Sean, is this the preferred way to expose offsets to asm files (or asm
> > code blocks) -- as opposed to say using .equ [*]?
>
> For actual .S assembly, yes. For inline asm, maybe? If it looks prettier, go
> for it.
>
> > If yes, I can rework my nVMX GPR fixes to use the same approach for
> > register offsets. I wonder if the non-TDX part of this patch (i.e.
> > Makefile stuff) can be split, then patch 6 and the Makefile stuff can
> > land independently and allow development on top.
> >
> > I can also split them out and include them in the next version of my
> > series, then whichever series lands first will land the offsets
> > support.
> >
> > WDYT?
>
> Hmm, I'd say keep your series as-is for now. The OFFSET() infrastructure really
> shines for proper assembly. For what you're doing, AFAICT it's only marginally
> better. So I don't think it's worth juggling dependencies to use it right away,
> we can always convert if/when the TDX series lands the fancy stuff.

Ack. We can do the switch later like you say.