From: Oliver Upton Date: Fri, 9 Dec 2022 18:30:11 +0000 Subject: [RFC PATCH 23/37] KVM: MMU: Move VM-level TDP MMU state to struct kvm In-Reply-To: References: <20221208193857.4090582-1-dmatlack@google.com> <20221208193857.4090582-24-dmatlack@google.com> Message-ID: List-Id: To: kvm-riscv@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, Dec 09, 2022 at 09:57:15AM -0800, David Matlack wrote: > On Fri, Dec 9, 2022 at 9:32 AM Oliver Upton wrote: > > > > Hey David, > > > > On Thu, Dec 08, 2022 at 11:38:43AM -0800, David Matlack wrote: > > > Move VM-level TDP MMU state to struct kvm so it can be accessed by > > > common code in a future commit. > > > > > > No functional change intended. > > > > Could you instead introduce a structure to hold all of the MMU state and > > stick that in struct kvm? If the goal is to eventually supersede all > > uses of the arm64 pgtable library we are going to need the ability to > > operate outside of a KVM VM context. > > This patch does introduce a tdp_mmu struct to hold all of the TDP MMU > state. Did you have something else in mind? No, I'm just an idiot without caffeine. I read the patch then forgot about it when reading the changelog. Sorry! -- Thanks, Oliver