mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "Hansen, Dave" <dave.hansen@intel.com>,
	"Zhao, Yan Y" <yan.y.zhao@intel.com>
Cc: "Gao, Chao" <chao.gao@intel.com>,
	"Xu, Yilun" <yilun.xu@intel.com>,
	"seanjc@google.com" <seanjc@google.com>,
	"bp@alien8.de" <bp@alien8.de>, "kas@kernel.org" <kas@kernel.org>,
	"ackerleytng@google.com" <ackerleytng@google.com>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"tglx@kernel.org" <tglx@kernel.org>,
	"Annapurve, Vishal" <vannapurve@google.com>,
	"nik.borisov@suse.com" <nik.borisov@suse.com>
Subject: Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT
Date: Fri, 4 Dec 2026 18:44:55 +0000	[thread overview]
Message-ID: <b843d86d6014fe6f0d36c1965f1fc29a5ad16814.camel@intel.com> (raw)
In-Reply-To: <e0a41ec8-d4cd-44e0-ba71-5e290da984f0@intel.com>

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@google.com.
> 
> 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.


  reply	other threads:[~2026-12-04 18:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  0:54 Rick Edgecombe
2026-11-26  8:13 ` Yan Zhao
2026-12-02  0:12   ` Dave Hansen
2026-12-02 18:04     ` Vishal Annapurve
2026-12-03  7:45     ` Yan Zhao
2026-12-04 16:47       ` Dave Hansen
2026-12-04 18:44         ` Edgecombe, Rick P [this message]
2026-12-04 19:16           ` Sean Christopherson
2026-12-04 19:18             ` Dave Hansen
2026-12-04 21:44             ` Sohil Mehta
2026-12-02  1:14   ` Edgecombe, Rick P
2026-12-02  1:24     ` Yan Zhao
2026-12-02 14:27       ` Edgecombe, Rick P
2026-11-26 10:48 ` Nikolay Borisov
2026-11-30 20:02   ` Edgecombe, Rick P
2026-11-30 20:42   ` Dave Hansen
2026-11-30 22:17     ` Nikolay Borisov
2026-11-30 22:20       ` Edgecombe, Rick P
2026-11-30 22:22       ` Dave Hansen

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=b843d86d6014fe6f0d36c1965f1fc29a5ad16814.camel@intel.com \
    --to=rick.p.edgecombe@intel.com \
    --cc=ackerleytng@google.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=seanjc@google.com \
    --cc=tglx@kernel.org \
    --cc=vannapurve@google.com \
    --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®