Re: [PATCH v3 0/8] Enable DICE-based TDX quoting

From: Edgecombe, Rick P

Date: Fri Dec 04 2026 - 20:50:12 EST


On Fri, 2026-12-04 at 19:51 -0400, Jason Gunthorpe wrote:
> > >
> > > Vs.. None of that, like everyone else.
> > >
> > > Naively the guest can call into TDX module just fine, so it is worth
> > > explaining why all this is needed, at least a little bit.
> >
> > There is a lot of history on this already, as Peter linked. Here was an
> > earlier
> > writeup on that direction that might be a good jumping off point:
> > https://lore.kernel.org/kvm/24a751d16ba0dc37aa7774df5739f39734cf9aca.camel@xxxxxxxxx/
>
> Ugh yikes, so lots of messy things in TDX design :\

Oh for sure! SGX based attestation is the original sin, but the lack of guest
side calls are kind of an adjacent issue.

>
> > SNP obviously has a much different model on the platform. I guess you are
> > thinking about ARM? TBH I don't know how their attestation works. If it is
> > different it would be useful to know why.
>
> RMM in general allows the guest to be interrupted at any time, and
> when the guest calls for any operation via a RSI that operation runs
> in a vCPU context and it too can be interrupted. So the RMM has the
> ability to suspend itself and return to kvm to process the interrupt
> in the middle of its signature operation without causing any issues.

That thread is basically explaining how TDX could do guest side calls as well
and work for quoting. The TDX Extensions are interruptible like you are
describing.

If you have the long running module operations running in the vCPU context, I'm
not sure exactly what that would mean. You need to have guest context and module
context and save/restore between them. So two contexts really. The only
difference is whether you allocate both per guest vCPU and make them 1:1, or
keep it a separate thing and share between vCPUs.

The 1:1 thing was considered for TDX and there is not a fundamental blocker. I
think we arrived at the "leave it" approach after weighing a bunch of stuff
including the legacy issues and future plans, etc. Not because TDX could not
support it.

>
> So never get the mess the above thread is exploring, there is no need
> for dedicated context slots, it just rides on the existing vCPU
> context.

It sounds like you didn't get to the part in the thread about S3M and direct
"HW" attestation? These days you can probably dump the mbox into an AI and ask
these questions, so I'll take this as a passing comment instead of request for
more info. Please let me know if I got that wrong and we can get into it more.