Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT
From: Edgecombe, Rick P
Date: Mon Nov 30 2026 - 15:02:25 EST
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@xxxxxxxxx/
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?