From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "jgg@nvidia.com" <jgg@nvidia.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linux-coco@lists.linux.dev" <linux-coco@lists.linux.dev>,
"Li, Xiaoyao" <xiaoyao.li@intel.com>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"Hunter, Adrian" <adrian.hunter@intel.com>,
"Reshetova, Elena" <elena.reshetova@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kas@kernel.org" <kas@kernel.org>,
"seanjc@google.com" <seanjc@google.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>,
"binbin.wu@linux.intel.com" <binbin.wu@linux.intel.com>,
"nik.borisov@suse.com" <nik.borisov@suse.com>,
"mingo@redhat.com" <mingo@redhat.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"tglx@kernel.org" <tglx@kernel.org>,
"Fang, Peter" <peter.fang@intel.com>,
"Gao, Chao" <chao.gao@intel.com>,
"tony.lindgren@linux.intel.com" <tony.lindgren@linux.intel.com>,
"Mehta, Sohil" <sohil.mehta@intel.com>,
"bp@alien8.de" <bp@alien8.de>,
"Maloor, Kishen" <kishen.maloor@intel.com>,
"yilun.xu@linux.intel.com" <yilun.xu@linux.intel.com>,
"x86@kernel.org" <x86@kernel.org>
Subject: Re: [PATCH v3 0/8] Enable DICE-based TDX quoting
Date: Sat, 5 Dec 2026 01:50:01 +0000 [thread overview]
Message-ID: <23b7789d1e599d70f7551e5d3e486912572fbb50.camel@intel.com> (raw)
In-Reply-To: <20261204235105.GI1691862@nvidia.com>
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@intel.com/
>
> 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.
prev parent reply other threads:[~2026-12-05 1:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 18:18 Peter Fang
2026-12-04 18:18 ` [PATCH v3 1/8] x86/virt/tdx: Add interface to generate a Quote Peter Fang
2026-12-04 19:15 ` Dave Hansen
2026-12-04 22:02 ` Edgecombe, Rick P
2026-12-04 21:44 ` Adrian Hunter
2026-12-04 22:04 ` Edgecombe, Rick P
2026-12-04 18:18 ` [PATCH v3 2/8] x86/virt/tdx: Add interface to check quoting capabilities Peter Fang
2026-12-04 18:18 ` [PATCH v3 3/8] KVM: TDX: Require at least one quoting session and thread per CPU Peter Fang
2026-12-04 18:18 ` [PATCH v3 4/8] KVM: TDX: Add KVM_TDX_GET_QUOTE sub-ioctl for quoting Peter Fang
2026-12-04 18:18 ` [PATCH v3 5/8] KVM: TDX: Report maximum Quote size in TDX capabilities Peter Fang
2026-12-04 18:18 ` [PATCH v3 6/8] KVM: TDX: Document KVM_TDX_GET_QUOTE Peter Fang
2026-12-04 18:18 ` [PATCH v3 7/8] x86/virt/tdx: Enable the quoting extension Peter Fang
2026-12-04 18:18 ` [PATCH v3 8/8] x86/virt/tdx: Add documentation for DICE-based quoting Peter Fang
2026-12-04 18:40 ` [PATCH v3 0/8] Enable DICE-based TDX quoting Jason Gunthorpe
2026-12-04 18:47 ` Edgecombe, Rick P
2026-12-04 18:50 ` Jason Gunthorpe
2026-12-04 19:11 ` Edgecombe, Rick P
2026-12-04 23:51 ` Jason Gunthorpe
2026-12-05 1:50 ` Edgecombe, Rick P [this message]
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=23b7789d1e599d70f7551e5d3e486912572fbb50.camel@intel.com \
--to=rick.p.edgecombe@intel.com \
--cc=adrian.hunter@intel.com \
--cc=binbin.wu@linux.intel.com \
--cc=bp@alien8.de \
--cc=chao.gao@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=elena.reshetova@intel.com \
--cc=hpa@zytor.com \
--cc=jgg@nvidia.com \
--cc=kas@kernel.org \
--cc=kishen.maloor@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nik.borisov@suse.com \
--cc=pbonzini@redhat.com \
--cc=peter.fang@intel.com \
--cc=seanjc@google.com \
--cc=sohil.mehta@intel.com \
--cc=tglx@kernel.org \
--cc=tony.lindgren@linux.intel.com \
--cc=x86@kernel.org \
--cc=xiaoyao.li@intel.com \
--cc=yilun.xu@linux.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
all inboxes | Powered by JetHome®