Re: [RFC PATCH 12/15] KVM: TDX: Add in-kernel Quote generation

From: Peter Fang

Date: Tue Aug 11 2026 - 02:23:28 EST


On Wed, Jul 22, 2026 at 04:43:05PM -0700, Edgecombe, Rick P wrote:
>
> Kai, Peter and I just had an offlist chat about what internal TDX locks
> TDH.QUOTE.GET takes.
>
> The next version of this series needs to come with an analysis of which ones it
> contends with and how unhandleable BUSY error codes are avoided with kernel side
> locking.
>
> On initial investigation the callers may need to hold
> tdx_acquire_vm_state_locks() to avoid contention around TDR lock. TDH.QUOTE.GET
> also takes "TDCS.OP_STATE" as exclusive, where TDH.MEM.PAGE.REMOVE takes it for

Quick update: this was a mistake in the "Intel TDX Module
Extension for Quoting" documentation. TDH.QUOTE.GET should take
"TDCS.OP_STATE" as shared. It will be fixed in the next version.

> shared.