Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT

From: Edgecombe, Rick P

Date: Fri Dec 04 2026 - 13:45:24 EST


On Fri, 2026-12-04 at 08:47 -0800, Dave Hansen wrote:
> On 12/2/26 23:45, Yan Zhao wrote:
> > Besides, Sean previously pointed out it would be better not to append DPAMT
> > support at the end. https://lore.kernel.org/all/aXqSg2nUSYJMbcXT@xxxxxxxxxx.
>
> I think this is one where Sean and I disagree. He obviously owns the KVM
> code here.

I think Yan is a little overselling what Sean said there.

He did want us to make sure the code didn't need to be immediately churned when
huge pages followed DPAMT. This lead to a preparatory MMU refactor series which
is now merged. But then we split up DPAMT and huge pages again and upstreamed
them separately. So to suggest he has made some mandate against splitting up
seems like a misrepresentation.

Besides, that reads like a complaint about reviewability in general. The ideal
splitting for making something reviewable takes thought. It is not something
that comes from hard rules.


One thing I'd like to hear is the diffstat Yan shared, split between KVM and
arch/x86. And maybe some more context on the KVM side changes. If the addition
is small on the KVM side then the concern might be even less relevant.

>
> But all I hear from my dear colleagues at Intel is that us maintainers
> are merging TDX code too slowly. I'm hoping that smaller, more
> digestible series make it easier for maintainers to consume. Because the
> big patch bombs with the kitchen sink up front aren't working.
>
> So, I don't _know_ that Sean is wrong here. But I suspect he'll be a
> happier and more productive reviewer if he can concentrate his review
> attention on smaller pieces.
>
> Maybe I'm wrong about DPAMT. Maybe I'm just generally wrong and I don't
> have a clue how to get big patch bombs to pass muster with Linux
> maintainers. Maybe the way KVM is doing things is _already_ optimal.
>
> But I suspect there's room for improvement somewhere. Anybody else have
> ideas other than, "just keep doing what we've been doing"?

I'm on board with the cut mercilessly approach. I think we are seeing success
for this approach even outside of TDX. The example that comes to mind is the
LASS upstreaming. The initial version hardly worked for anyone because of
vsyscall config exclusion. Then there was a smooth flow of enhancements. Instead
of one giant unwieldy series to have to track changes in.

We run the risk of the design not being as ideal once you get the whole thing
together. So the exception for considering things widely needs to be anything
around uABI. Everything else, I think the tradeoff of splitting tends to win.
But yes, let's not be dogmatic about it. Everything can be case by case.