[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f3bf9ad8-8179-b2bf-7511-403ed4d1d165@redhat.com>
Date: Fri, 12 Mar 2021 18:00:44 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Sean Christopherson <seanjc@...gle.com>,
Ben Gardon <bgardon@...gle.com>
Cc: linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
Peter Shier <pshier@...gle.com>,
Jim Mattson <jmattson@...gle.com>
Subject: Re: [PATCH 4/4] KVM: x86/mmu: Factor out tdp_iter_return_to_root
On 12/03/21 17:35, Sean Christopherson wrote:
> What about calling it tdp_iter_restart()? Or tdp_iter_resume()? Or something
> like tdp_iter_restart_at_next() if we want it to give a hint that the next_last
> thing is where it restarts.
>
> I think I like tdp_iter_restart() the best. It'd be easy enough to add a
> function comment clarifying from where it restarts, and IMO the resulting code
> in tdp_mmu_iter_cond_resched() is the most intutive, e.g. it makes it very clear
> that the walk is being restarted in some capacity after yielding.
I agree with tdp_iter_restart(), or tdp_iter_restart_from_root() too.
Paolo
Powered by blists - more mailing lists