Re: [PATCH v3 0/8] Enable DICE-based TDX quoting
From: Jason Gunthorpe
Date: Fri Dec 04 2026 - 18:51:21 EST
> > Well this entire 8 part series, a related VMM series to N VMMs, and a
> > VMM/host API to carry it.
> >
> > 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 :\
> 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.
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.
I wonder how the nonce is securely transfered from the guest to the
TDX module? I suppose it must get loaded into per-vm private memory
and then read out when the host works on the signing...
Jason