From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 600A6C10F1E for ; Fri, 9 Dec 2022 18:30:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbiLISa2 (ORCPT ); Fri, 9 Dec 2022 13:30:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiLISaY (ORCPT ); Fri, 9 Dec 2022 13:30:24 -0500 Received: from out-136.mta0.migadu.com (out-136.mta0.migadu.com [91.218.175.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AD11146C for ; Fri, 9 Dec 2022 10:30:23 -0800 (PST) Date: Fri, 9 Dec 2022 18:30:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1670610621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Sp1A6UXIoqNJWGJtdonH4Zsm1F89DCGx3ZYcZ2op3bM=; b=jR4PiHfMsMGnm69Suf71e/70K7WEW4Ckwww6P2DbR1hvNOndJUptnkqHKMBTt6fIGBmQdr ov89mpeQhS51X1/M2mDXZLGgvayYnsNMKQf+C//bfr73BRyk9BbiZau9RKlj5+SRQzhmAd 54D8anc79u/KgI2hxA84HnHQ8nsdRfk= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: David Matlack Cc: Paolo Bonzini , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Huacai Chen , Aleksandar Markovic , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sean Christopherson , Andrew Morton , Anshuman Khandual , Nadav Amit , "Matthew Wilcox (Oracle)" , Vlastimil Babka , "Liam R. Howlett" , Suren Baghdasaryan , Peter Xu , xu xin , Arnd Bergmann , Yu Zhao , Colin Cross , Hugh Dickins , Ben Gardon , Mingwei Zhang , Krish Sadhukhan , Ricardo Koller , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [RFC PATCH 23/37] KVM: MMU: Move VM-level TDP MMU state to struct kvm Message-ID: References: <20221208193857.4090582-1-dmatlack@google.com> <20221208193857.4090582-24-dmatlack@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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