Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4810567imw; Tue, 19 Jul 2022 13:47:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tAeoQ8OkHEQb2KTFiWuCXgz2OhmgbCm4taPZn7kDSZa88oEuwTfZYqKMewbPpX7Zyvh7eO X-Received: by 2002:a63:1c0f:0:b0:41a:3b20:5f8c with SMTP id c15-20020a631c0f000000b0041a3b205f8cmr7450583pgc.44.1658263659976; Tue, 19 Jul 2022 13:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658263659; cv=none; d=google.com; s=arc-20160816; b=TxYRXK1KG1pFiwhtXFHRX0rCIiYJadxFc61SY4sFM+L+SslnVYRyyP8vLQTbP0nl5Z xhTeSLo6hsZmghEFMJaSqhldJYxrRPjBiVgRI3p/b7F8WMbD0l8KYKvNU/u87vhcsiP4 DwT5NKvFR638SY4MSLy6fsy2nlZ98ZpBmqLJVChujXv+6FcLsj2u7ViMIsOVWZUrTlyY maM02/BWLJME/rVg+oDvz6AZe/89ANOwsbx8PpC4/MsVh/OP+yxQniKFqmKj4JQzk1hp mvj1Oj5555GQRPKDbri+vDhHLsJyUw4P4JHr6B3ieT8lRY0h35f3mp91B1QU0oXX8Ndc vQxg== 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=66lOoODJK8E+OBaGCxybOPnfHghyFR1wn5dp+ysHQ2o=; b=NRx32tIUu8T4xpqyiSmwfkdePK8aAMUdlsaHmEVD1FkFXo/n41wL/wD9rzH0ddSdtl a2GsgBriw2y4utQ9RI2wgpdEVbRLQQDG2OyOYElzjHSvV3b0JZadfVIcqdwERreZKFQ8 pGPMrwxApprxyspaunrjYUWjBMzyXrXq47sCFyfhnHk6QXWmjHycqmQQCNGOV8q33Vhy de8h8eK5M7jbdsTkQakpPUBa8ZyFdxR+KoMy9dWpsyyrGUFG7XDxA1ZrnVjkKTD7Da4T Z5LVBPtz9hzRyObrSStBQqEfS2SYx1uCb9f8tNH4F3xaI4jbqFubwkohpxzTJMUkSEkV vByw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ym9n0ZrS; 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 t1-20020a170902b20100b0016d0b8b8076si3416165plr.294.2022.07.19.13.47.24; Tue, 19 Jul 2022 13:47:39 -0700 (PDT) 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=Ym9n0ZrS; 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 S237621AbiGSUbK (ORCPT + 99 others); Tue, 19 Jul 2022 16:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235565AbiGSUbJ (ORCPT ); Tue, 19 Jul 2022 16:31:09 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99335071C for ; Tue, 19 Jul 2022 13:31:08 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id w7so574900plp.5 for ; Tue, 19 Jul 2022 13:31:08 -0700 (PDT) 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=66lOoODJK8E+OBaGCxybOPnfHghyFR1wn5dp+ysHQ2o=; b=Ym9n0ZrSB1bTD6E6GT9WF4NK05xCS/Hs8NQ7w6dcppIMHX1dTKQLcKP1fLlk9SfpiB Nf+sueQuI4VabNfv91MRC69FaGhc77IlSGWIyJ/GtOj8TI4QPAE82NwYFaYcXBrnNv+1 0t/vuk9iV3tZWYIueZF2FxNDwhkRbD+AgWvJmSLsCISZeNRWCHwNOMlXqFEuri9c5MI4 DSNSPUx85JI2Lbr6WWUMfMStPewa/davVbaRVz3NXZ1n12AdqT8N9o0WLlu2ddCgJiX0 VS7qnmtlikDjTxYpawPI+ghiJeNAVBwV840QVYjGlOez/ZYxV3VOGi+7ZlDvalmXqvB/ 9onw== 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=66lOoODJK8E+OBaGCxybOPnfHghyFR1wn5dp+ysHQ2o=; b=STqnT3u4l6PaYomEo8bDqaXU4JSJ8+KiSKPj7wbgHCwoHnJC5IxZ0FZ4IJp+lxCHE5 lZcRmJ4ORm9xU0PgFTZjFgzb5upZU1dFeC6TwbgCSnjqQ4OhS92314qZMtWl623YC0W2 NXrwL8tB/qRMi+FRplA+1kYpTPFD7IiVd7wanee4rRsr4CWvC74NfV7yYZ18t/jgtDBV Rx6s4od3vmXEtiEs0KZdxbrgAiSvBoCfeavCXx96IXXOvuWM3Epvd1z3Z3IxGEsItG7+ Q1aEoKeR0eaUMtyJceGP4G4NzqQcx3nceZV7FJi6FzgoIIKs2dRfcoYoV+kwYAAkFTqq 2NLQ== X-Gm-Message-State: AJIora9fcYDDo/7GTfcZj00FzQnaT4Rm+43N++GCIWjnydMq45PAjfwV /8UVvevG009eWGN8UctsdrjCuA== X-Received: by 2002:a17:902:ccc4:b0:156:5d37:b42f with SMTP id z4-20020a170902ccc400b001565d37b42fmr34886845ple.157.1658262668176; Tue, 19 Jul 2022 13:31:08 -0700 (PDT) Received: from google.com (123.65.230.35.bc.googleusercontent.com. [35.230.65.123]) by smtp.gmail.com with ESMTPSA id y3-20020a17090322c300b0016a6caacaefsm12258717plg.103.2022.07.19.13.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 13:31:07 -0700 (PDT) Date: Tue, 19 Jul 2022 20:31:04 +0000 From: Sean Christopherson To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Vitaly Kuznetsov , Maxim Levitsky , Lai Jiangshan Subject: Re: [PATCH 08/12] KVM: X86/MMU: Remove the useless idx from struct kvm_mmu_pages Message-ID: References: <20220605064342.309219-1-jiangshanlai@gmail.com> <20220605064342.309219-9-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220605064342.309219-9-jiangshanlai@gmail.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, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 It's arguably not useless, e.g. it's still used for a sanity check. Not sure how to word that though. Maybe? KVM: x86/mmu: Drop no-longer-necessary mmu_page_and_offset.idx On Sun, Jun 05, 2022, Lai Jiangshan wrote: > From: Lai Jiangshan > > The value is only set but never really used. Please elaborate on why it's no longer truly used. Something like: Drop mmu_page_and_offset.idx, it's no longer strictly necessary now that KVM doesn't recurse up the walk to clear unsync information in parents. The field is still used for a sanity check, but that sanity check will soon be made obsolete by further simplifying the gathering of unsync shadow pages