Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3190891pxb; Thu, 10 Feb 2022 14:44:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8ubvFgvoT0Z0DVgvT4uIVzoG3pa+dbpP6Wj5eN49i/NMaY2wHzx4msW65PtIMrLM4dJLO X-Received: by 2002:a63:f00b:: with SMTP id k11mr2887194pgh.469.1644533048633; Thu, 10 Feb 2022 14:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644533048; cv=none; d=google.com; s=arc-20160816; b=CtI/7tQFrJ+VEgjTqDhQNpnVB5IwuBMA2TN1aH3C5I625NDTkmqMrGO47ehw54OVQc QRkiGTyISv+D5RtNmI/0oyTqXm3ql0EPV5cQ+9nA9hoiq3dXWp9V0BemF76VxgcJZG0+ sYl6AhRoNehr21Nn9r0R/Y41gWRWadnIvaxIPHAozSurteGpOAp1cjqbJF3SiMIXylVW lBXcoriowjR9lAhUugb42m2F3XwUPwL/ojQpuBWc2km/btWKUCw00ZbWk71rwLFdqqrz c5gwk0Xa5Y7v+mJh7Ftv3Tc8vkzqQeUhx4mDRRPx9hLN7699rloEXUm7Sl3ZHskndtPk QPXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MkCAJcsgDnZ4AMQg0YJZxLL5mg72sPEcPDTYT76wphA=; b=Tj4/agh0XZHZXK2qfDbsUTYFil2q/wueXEHKgnz+sKtcCxOF2mV9AtUsCwzbzZ68Uw +AxpHYdKuCePVvntLWdqNLkUJyoUkmhcmYcROzRPjMvufBYKtco1vxcL+9Ankr6/wReh mHH0kGYJ574XUTOC2WzNhAmqJNCteRHfTIxLXnuW5xQWnN8spFo6EWh4ydoQvR2Pndba 8cr0Kx5MuKsAiFPZLrnGxN1BjNlwYRr2VLvJ1e19sdX4XDMqTBa4Q6K1AxSeqnbxISIw 1iqdQ0OzZqLabNT60Xw9yckHaKY+aknSIL5CTY1/9G5DqJUjarlkJae3cHEn3+1NBIYq f11Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VITXk2hM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j191si7907984pgd.581.2022.02.10.14.43.57; Thu, 10 Feb 2022 14:44:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VITXk2hM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343987AbiBJT2o (ORCPT + 99 others); Thu, 10 Feb 2022 14:28:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343944AbiBJT2n (ORCPT ); Thu, 10 Feb 2022 14:28:43 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD696D82 for ; Thu, 10 Feb 2022 11:28:43 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id m7so6123878pjk.0 for ; Thu, 10 Feb 2022 11:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MkCAJcsgDnZ4AMQg0YJZxLL5mg72sPEcPDTYT76wphA=; b=VITXk2hMcSEjC+OZoOeI41UdOAsXXnSae+vIO1t5uiJUDG3f+W8Ujvo0MzRncXcGSg USTmlZSg0keVqVzjOeEZQixEP8Pgeq2dITc6QO3lghqqFZQJxwqFTif5bEsHgDSzNkCQ 2eE8SKwMDCYSs2aXYXFc+5kXVC2grvOSWZ9IMP+RmFomSSXp/fpnKoid/djrG+9ci/6+ l5iMO0ARPss2aCLOgxxHGPRXtXwq90RSu87KgTi6DFizS3nL3ZLpvWb0tjEZ17BsVgSy 52BW03EP4lmL4Hg/sREOKFYcn0GlisUdJyuwbMTWxFOmIkab9YrI1eHTWrNQ6y6lfoL4 Hg0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MkCAJcsgDnZ4AMQg0YJZxLL5mg72sPEcPDTYT76wphA=; b=SwwThwMChX8FG+y4xLD4gF89vNRzisJR7/JbS6VYQ9QP+4VjdAvYzZ3f1aCdevIjp5 9SBUTj/GbwNUA/2uo0cPilFgi/N3S3GjoGI3gwXxYdWejrNwIo1PRev+7M+jibyel1bt bIpy0uk0sn5uyXvwllIIGbfwaoq2DMd66JyRzpE54DVj3kmhDpU3aM9+AWtL3U4TS6fR oB8Vv+WxWjt8P+JkU8J4vc3osH+z5nKpsQ8DmkZ/+I3vhbmEeecilxTndrryaJeLyF/r zdF6uwvL+OP/QKUf3v2e1fVZHXlrUS0PARf2BRKCHpOw2K3IJWsiRLQO0IWX/TYkd2Vl D1tw== X-Gm-Message-State: AOAM533VObfg3WMwDY2ofgCXcE9HHA1HUORdUQRI2mmFQs5U/NjGYSZi zH2TH5UL87U8KNKCWtRPZG6ow1c3JDhxaQ== X-Received: by 2002:a17:903:1c8:: with SMTP id e8mr8819514plh.75.1644521323208; Thu, 10 Feb 2022 11:28:43 -0800 (PST) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id d8sm17720591pfj.179.2022.02.10.11.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 11:28:42 -0800 (PST) Date: Thu, 10 Feb 2022 19:28:39 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: David Matlack , LKML , kvm list , Vitaly Kuznetsov Subject: Re: [PATCH 00/23] KVM: MMU: MMU role refactoring Message-ID: References: <20220204115718.14934-1-pbonzini@redhat.com> <40930834-8f54-4701-d3ec-f8287bc1333f@redhat.com> <344042cf-099e-5e26-026a-c42d0825488e@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <344042cf-099e-5e26-026a-c42d0825488e@redhat.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 10, 2022, Paolo Bonzini wrote: > On 2/10/22 17:55, Sean Christopherson wrote: > > > union kvm_mmu_page_role root_role; > > > union kvm_mmu_paging_mode cpu_mode; > > > > I'd prefer to not use "paging mode", the SDM uses that terminology to refer to > > the four paging modes. My expectation given the name is that the union would > > track only CR0.PG, EFER.LME, CR4.PAE, and CR4.PSE[*]. > > Yeah, I had started with kvm_mmu_paging_flags, but cpu_flags was an even > worse method than kvm_mmu_paging_mode. We could always do s/is_guest_mode/is_nested_mode or something to that effect. It would take some retraining, but I feel like we've been fighting the whole "guest mode" thing over and over. > Anyway, now that I have done _some_ replacement, it's a matter of sed -i on > the patch files once you or someone else come up with a good moniker. > > I take it that "root_role" passed your filter successfully. Yep, works for me. I almost suggested it, too, but decided I liked mmu_role marginally better. I like root_role because it ties in with root_hpa and root_pga.