From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "Gao, Chao" <chao.gao@intel.com>,
"Hansen, Dave" <dave.hansen@intel.com>,
"Xu, Yilun" <yilun.xu@intel.com>, "bp@alien8.de" <bp@alien8.de>,
"kas@kernel.org" <kas@kernel.org>,
"hpa@zytor.com" <hpa@zytor.com>,
"mingo@redhat.com" <mingo@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"x86@kernel.org" <x86@kernel.org>,
"tglx@kernel.org" <tglx@kernel.org>,
"Zhao, Yan Y" <yan.y.zhao@intel.com>,
"nik.borisov@suse.com" <nik.borisov@suse.com>
Subject: Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT
Date: Mon, 30 Nov 2026 20:02:13 +0000 [thread overview]
Message-ID: <fa4eabf6bd5d6c54c4b4f02a6919a290595b0818.camel@intel.com> (raw)
In-Reply-To: <5e0136bc-43c9-4f7d-8689-b58515a55992@suse.com>
On Thu, 2026-11-26 at 12:48 +0200, Nikolay Borisov wrote:
>
> To me all this seems like "DPAMT upstream was rushed because it is
> helpful for some few big players", and because 99% of the other people
> aren't going to use it let's make it optional.
>
TBH I don't have much feedback from the long tail of TDX users. It is true that
some big players wanted DPAMT though.
> And we end up with
> conditionals sprinkled in the code, 99% of the time those conditionals
> evaluating to false.
I don't expect to see conditionals sprinkling the code. I'd expect one big off
switch during setup that skips enabling a bunch of features if DPAMT is enabled.
Then initial feature enabling without DPAMT extras.
>
> Wouldn't it be better if Intel gets it act together, upstreams the
> optimisation work, making DPAMT a first-class citizen and just get rid
> of the optional and ensure that DPAMT is used in 99% of the cases?
The optimization work won't help the problem of TDX series constantly being too
big. Optional DPAMT is not going to solve that problem completely either, but
every little bit helps.
> Otherwise it just feels that upstream work starts with one statement and
> commitments, later those are revised and/or never materialize.
TBH this characterization seems a bit sensationalized.
The later DPAMT series had a patch to make it optional and default off, but Dave
suggested to do it as a follow up:
https://lore.kernel.org/kvm/9adb11c7-7e8f-4a6c-a4d6-fdcb717c41f5@intel.com/
And here we are. So I don't see any major change here actually. But plans do
change sometimes... If you were eagerly awaiting the lock optimization or
something, please just say.
BTW, the other decent option here is to make DPAMT optional but default on. If
we have a flag, I'd think to make if default off until contention is improved.
But if you would feel better that the pain was in place until the optimization
materialized...
On how we should do further optimizations eventually... We do have a patch on
hand that helps, but it is fairly exotic one. Now that we have basic support,
further optimizations will be evaluated in a different context. I'd expect a
more upleveled wholistic evaluation of what the core problem is. Are there any
changes in the module that could help us avoid maintaining exotic locking
dances, etc?
What was your expectation?
prev parent reply other threads:[~2026-11-30 20:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 0:54 Rick Edgecombe
2026-11-26 8:13 ` Yan Zhao
2026-11-26 10:48 ` Nikolay Borisov
2026-11-30 20:02 ` 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=fa4eabf6bd5d6c54c4b4f02a6919a290595b0818.camel@intel.com \
--to=rick.p.edgecombe@intel.com \
--cc=bp@alien8.de \
--cc=chao.gao@intel.com \
--cc=dave.hansen@intel.com \
--cc=hpa@zytor.com \
--cc=kas@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nik.borisov@suse.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--cc=yan.y.zhao@intel.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
all inboxes | Powered by JetHome®