[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADrL8HVAcWFO3Nv3Ox4k6VdcON=8k+YrOFgqoFojOW=eWJOzaw@mail.gmail.com>
Date: Mon, 28 Jul 2025 10:51:18 -0700
From: James Houghton <jthoughton@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>, Vipin Sharma <vipinsh@...gle.com>,
David Matlack <dmatlack@...gle.com>, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 4/7] KVM: x86/mmu: Only grab RCU lock for nx hugepage
recovery for TDP MMU
On Wed, Jul 23, 2025 at 1:38 PM Sean Christopherson <seanjc@...gle.com> wrote:
>
> On Mon, Jul 07, 2025, James Houghton wrote:
> > Now that we have separate paths for the TDP MMU, it is trivial to only
> > grab rcu_read_lock() for the TDP MMU case.
>
> Yeah, but it's also a largely pointless change. For the overwhelming majority of
> deployments, rcu_read_{un}lock() does literally nothing. And when it does do
> something, the cost is a single atomic.
>
> I'm leaning quite strongly toward skipping this patch, as I find the code to be
> much more readable if KVM grabs RCU unconditionally.
That's fine with me, thanks Sean.
Powered by blists - more mailing lists