Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5020733pxb; Sun, 13 Feb 2022 05:08:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgx3w0T5Y4+2BKpI62mDsGECJ1Yu9YownQ50JQUmhEtn/ciUyNV5u+POxQI8W/1Zwb/Z9W X-Received: by 2002:a17:902:c944:: with SMTP id i4mr9893002pla.1.1644757735628; Sun, 13 Feb 2022 05:08:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644757735; cv=none; d=google.com; s=arc-20160816; b=Bix5VrqN3jlAMfgV2iuGoK4vN2wmgRZA+DhhUA0IwfdoRBVU7ntF1eLRfLMZ6ldsVx CMfH9Ct4EUwDuCJJbtYiPwvfyOQI5cG3F373tsE70wrvIoEKcI3WNavvsmo2GsOCWnK/ wjYxtYK9OYEcd46erCuehMm1Y4zNh5G+WzDi6hBQEC1YMTJ/JwazGXMRE7ADvA6Odgd1 BGfPVmhVgHiKZc5qiIA2XWqE2dVCdWzmmJyzPxQP64Rm14fY11v3Bw4kpWtXCISe/h9D baO8tsG8l+xe6rjX9iX8GygejeCVp4DOlqUtBrAA0TNTArjRVhPVqmj5ryjew5OzD0Mt lmnw== 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=TvMXYurvNCdUgehPQu7kTC58DmEbnQ86iEZfjMwXWFI=; b=tm78lZAx5TMaDPko8oHLPkMnHbIJOtKp8HKsHI7IuUXaWWBJw0iTk+nkhn5qgtq03D 008LoiPp0atk4DNR5ou9OPwxvSYYADAtiHcMOzfITBKT9D9T4+bV0nAB3WNIlgUKgRW6 gVIqgfZ/0EbTsvbjFwmReWQcLux6nmVOIwjDNxvaGZ57YJ9V1TjNbZkeKkNW02dvAchL CXOJCtQZPU1XlkxWO6t5tUPGHDYKB3ozmUk4uUPmt7pZBl4GzoUB403UgSHdLrlwDuR9 SJ7F6gcOeZ71C5iEqzL10XCB/hKV+pB3h7KVGUk8rlVfOCYWgF8RW7IZLTgQd1XFbDTO ls5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=do2Tu1PS; 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 m5si9041145pjh.151.2022.02.13.05.08.43; Sun, 13 Feb 2022 05:08:55 -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=do2Tu1PS; 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 S1344286AbiBKRjo (ORCPT + 93 others); Fri, 11 Feb 2022 12:39:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235581AbiBKRjn (ORCPT ); Fri, 11 Feb 2022 12:39:43 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3491AC6A for ; Fri, 11 Feb 2022 09:39:42 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id d187so17462277pfa.10 for ; Fri, 11 Feb 2022 09:39:42 -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=TvMXYurvNCdUgehPQu7kTC58DmEbnQ86iEZfjMwXWFI=; b=do2Tu1PSZdb3VuxITfwJLiRVNCjV3CHZOC6duKl/xD9sjGqnmXYARd/t6BjrBP+fQy PHGI2XNxt1W3UXTdz76POfj0R+5LYVSKRcyeot8kDhKLr2HSpkLYNlPX20Iyn/fA8wIq pxsh3rt0jGkroIv78oS61UdMk0S4F2VOJdsxerf5vfLNL0B+EdtFi1wJ9/uE1mafreJV OKtygIwV2O4MZWPeL8z8S29gOz5YAvzRcE9RhWvSJxkRqtYjft2el0ZL43cY4bSZuWyC XLO2iLz/lkNBh4EwxpMPe1BN5eYHdMLqCgGVfKw8oXduYPIW8a+WSq7RjPNrijDjR0iT 5bww== 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=TvMXYurvNCdUgehPQu7kTC58DmEbnQ86iEZfjMwXWFI=; b=tHh7xKH32JYIWzBSmvmz58i/hjspzxxcwROeju6d9oJyaEyUPAH/m/SCmImcJN3rWX M+Jq2EvJebhEaoTiPPeEK2yGm/RI+xWaM9FIivCcnfoCWW+6Qlysa/DAVqsTAaAi9mXn sEQpfMd/OZUr3hiE7Kd3jtLHEW0bgHlPrN/vjsKFPvbSw3gbloxmkA2OMHuUYpVK1Fop RrAlQssk9O2m6GBaRO5s22eAn2osRfeB0QHfb4oVr1q/pEWrad0b6iFkowyqg+jTIC1R 0gJ9u7uisEa/kUpcDn7yRECwok8vKlZny/WN6783AYBrUKJtUAZvC9gtulSnwy9+ryrY nicg== X-Gm-Message-State: AOAM5336fSXFsj+tecL3OyY3qS4Rp+1KecS9b/qHjt3e/JRuoWT5d1P8 aMQ9/SKQHk8aCsh5kGZbhKB8jV3Nvfw8XQ== X-Received: by 2002:a05:6a02:19c:: with SMTP id bj28mr2206454pgb.344.1644601170787; Fri, 11 Feb 2022 09:39:30 -0800 (PST) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id m1sm29072743pfk.202.2022.02.11.09.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 09:39:29 -0800 (PST) Date: Fri, 11 Feb 2022 17:39:26 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, vkuznets@redhat.com, mlevitsk@redhat.com, dmatlack@google.com Subject: Re: [PATCH 07/12] KVM: x86: use struct kvm_mmu_root_info for mmu->root Message-ID: References: <20220209170020.1775368-1-pbonzini@redhat.com> <20220209170020.1775368-8-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209170020.1775368-8-pbonzini@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 Wed, Feb 09, 2022, Paolo Bonzini wrote: > The root_hpa and root_pgd fields form essentially a struct kvm_mmu_root_info. > Use the struct to have more consistency between mmu->root and > mmu->prev_roots. > > The patch is entirely search and replace except for cached_root_available, > which does not need a temporary struct kvm_mmu_root_info anymore. > > Signed-off-by: Paolo Bonzini > --- Reviewed-by: Sean Christopherson