From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "Reshetova, Elena" <elena.reshetova@intel.com>,
"Hansen, Dave" <dave.hansen@intel.com>,
"seanjc@google.com" <seanjc@google.com>
Cc: "Xu, Yilun" <yilun.xu@intel.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
"Annapurve, Vishal" <vannapurve@google.com>,
"kas@kernel.org" <kas@kernel.org>,
"Wu, Binbin" <binbin.wu@intel.com>,
"Fang, Peter" <peter.fang@intel.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: TDG quote analysis
Date: Tue, 22 Sep 2026 17:07:46 +0000 [thread overview]
Message-ID: <ede520b24753e086dcfe73f11bb93cca7b6e5ad7.camel@intel.com> (raw)
In-Reply-To: <DS4PPFA84FA90FC58F88D79B0EF19B34596E7832@DS4PPFA84FA90FC.namprd11.prod.outlook.com>
On Tue, 2026-09-22 at 06:48 +0000, Reshetova, Elena wrote:
> Hope this clarifies how to calculate memory impact.
Sean is suggesting to have some save state area per-TD such that each TD can get
a quote without interfering with the other. I think this is saying inside TDX
module you need a "vCPU" and a "session", at which point you can execute
independently from the other quotes. Together that would take:
2 + 2 + 6 = 8 pages = 40KB?
(BTW not following the "* 2 + 2" bit, how does that square with "Quoting Service
is luckily the one that needs very little, but it does consume a single 4KB
page"?)
And then the quoting TD itself could be, I'd guess at least in the MB range?
So the two options:
One operation at a time per-system: A few MBs + 40KB + contention handling
One operation at a time per-TD: A few MBs + 40KB * NUM_TDs
Outside of the S3M based attestation type schemes, the per-TD solution seems
simpler to me. No one needs to think about contention. (except for inter-guest
contention) And it eliminates ever needing to configure contention handling
parameters from the host.
Then we leave contention handling for another day? In a way, the save state per-
TD solution is in the spirit of punting, because it makes the whole thing
simpler today and will require more work for an S3M each-each quote thing.
But that "simpler" is only about contention. We still have some opens on what
TDG extension calls need to handle. Dave, something else we were discussing up
the thread is whether a TDG quote call needs to have some
INTERRUBTIBLE_RESUMABLE behavior from the guest. So that the guest can take a
break from the long running guest call in order to handle *guest* interrupts. Do
we have the same concern there that we do in the host?
next prev parent reply other threads:[~2026-09-22 17:07 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 0:48 TDG quote analysis Edgecombe, Rick P
2026-09-16 18:00 ` Sean Christopherson
2026-09-16 18:49 ` Edgecombe, Rick P
2026-09-16 19:27 ` Sean Christopherson
2026-09-16 22:31 ` Edgecombe, Rick P
2026-09-16 23:00 ` Peter Fang
2026-09-16 23:57 ` Sean Christopherson
2026-09-17 0:56 ` Edgecombe, Rick P
2026-09-17 13:37 ` Sean Christopherson
2026-09-17 18:12 ` Edgecombe, Rick P
2026-09-17 19:57 ` Sean Christopherson
2026-09-17 21:32 ` Edgecombe, Rick P
2026-09-18 0:04 ` Sean Christopherson
2026-09-18 2:39 ` Edgecombe, Rick P
2026-09-18 13:13 ` Sean Christopherson
2026-09-18 18:12 ` Edgecombe, Rick P
2026-09-18 21:32 ` Sean Christopherson
2026-09-21 23:00 ` Peter Fang
2026-09-21 23:06 ` Dave Hansen
2026-09-23 4:09 ` Vishal Annapurve
2026-09-24 0:03 ` Vishal Annapurve
2026-09-24 0:18 ` Sean Christopherson
2026-09-24 0:44 ` Edgecombe, Rick P
2026-09-24 16:28 ` Sean Christopherson
2026-09-21 23:04 ` Dave Hansen
2026-09-21 23:19 ` Sean Christopherson
2026-09-21 23:36 ` Dave Hansen
2026-09-21 23:46 ` Sean Christopherson
2026-09-22 0:03 ` Dave Hansen
2026-09-22 6:48 ` Reshetova, Elena
2026-09-22 17:07 ` Edgecombe, Rick P [this message]
2026-09-23 8:50 ` Reshetova, Elena
2026-09-23 22:50 ` Peter Fang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ede520b24753e086dcfe73f11bb93cca7b6e5ad7.camel@intel.com \
--to=rick.p.edgecombe@intel.com \
--cc=binbin.wu@intel.com \
--cc=dave.hansen@intel.com \
--cc=elena.reshetova@intel.com \
--cc=kas@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.fang@intel.com \
--cc=seanjc@google.com \
--cc=vannapurve@google.com \
--cc=yilun.xu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox