Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6357559iog; Thu, 23 Jun 2022 17:43:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sSPXd3up0i08goqZbiFK8GIJmVjaz9l1GViXbBxj0PCmvHt9Gj3JddGQqhDUrB9nbW6j/K X-Received: by 2002:a17:907:724e:b0:70f:29c0:3a03 with SMTP id ds14-20020a170907724e00b0070f29c03a03mr10343295ejc.673.1656031419421; Thu, 23 Jun 2022 17:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656031419; cv=none; d=google.com; s=arc-20160816; b=WfLb++n+agAwGI6TtV25+wRNHJkmC5WKZ3oAFMpsjAzNx4ypSRVMbUpa36Ra1/CCRb cvDuSwdbIIPeiU8uQV/x2Nw4sHUEmDzlQvOl3vYr9wzE3TBc09WQB5zzOqBK+x813ka2 fqBzuSjCIwHe818TVc8KpWKnLGDRBVE7X93KHU2UroqXKM3oMhnSNZH2bbSV7TNoR9QB zw/7CucR20XfU8DsY8178pNmfcFxIfjYO+0d47lwm1QUxTgowe+OV4KKZHwEIHpp6uMs 2HzFSOQvj4FAN2Go9JnY7Xz/EIpjpT/iHKO17d8him5TwIamo0ruPRxCMP4tIjeqxDlY LIEw== 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=zbb8jnyf9qPdBsIbRpO/u6Nva8QOxFa0c+HbQiJfy+k=; b=tIcRiuoC1c7Mqo1vx4Tq/I0cc5k70/6dasdx1WLloHfPuukt4bmbx5h0VYlRFjNMa1 LjSnYg1XtVJtytKLCPvD+w681VrqEFtgLicWT1P4uUY41SHVrpmcTeYn/iFce6pIkiPW WXIlVg/nn2WZdXRjcijjx1foTsAvuJDwwo2eSQL3r8uFHGnL4rQBh5PAfmkxYoimZY9F U7KO/l2XZJpzV1sBssm6WjFGTp25c/gzZo1jwg0ROUU+j5tkNURPNlZluB2LSs/+PFtk xb6KL9Z7t8uC6pq+hoaJjXESmliCEiC4pUkupRuinTX/IDM8FTgfhxwpe9LH38swUSrN gajw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=IlG62ZJ+; 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 s2-20020a056402520200b0043575a516c1si1488604edd.625.2022.06.23.17.43.04; Thu, 23 Jun 2022 17:43: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=IlG62ZJ+; 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 S230512AbiFWXuz (ORCPT + 99 others); Thu, 23 Jun 2022 19:50:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiFWXux (ORCPT ); Thu, 23 Jun 2022 19:50:53 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E7B1562E3 for ; Thu, 23 Jun 2022 16:50:52 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id r66so881989pgr.2 for ; Thu, 23 Jun 2022 16:50:52 -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=zbb8jnyf9qPdBsIbRpO/u6Nva8QOxFa0c+HbQiJfy+k=; b=IlG62ZJ+WehrUE0/WvoRAjWTwprtTh9sQ65qKKaJJDTzehtixHvUSG/LPmWh2YzpYy oMZ4vl1RfjMmr6Eq0pa1hPVoBNsux4hFJQxZuwMwTYY0m76RkNFzBg88Ff/LjT+i+SNn exnmCJwxY/Xd6voz5p06GCvpDOyehFDT/2EWnfxu0ilHQXKwQvB0mc1fW4wfiHHu5GYd nMGHgybQzJUY8rbRkmKPCJsxlWgO1dqQl0b5Bz9vl9tnMa3/ZYHfjECinYtydaGFEOz+ j9LnXH9oA8MFoIwboFlDlvhH+Hyd/Bk0lggkqo/gv78dOEbORhDCnmrq6N0aR0my7hID psGA== 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=zbb8jnyf9qPdBsIbRpO/u6Nva8QOxFa0c+HbQiJfy+k=; b=4RH+UgSEMoI1UkqMIfclAHeMwebTU9/vSmXZmvO1z+Fh1S2BW65of1w4tjzjU0m5iM vCs3ZM9ghnbibs8IEI5Zm1I6WSU7ADSw30WDrOEnq9vNsFC0sNVsThV2Gn4hAD0FEP/Y o47UPixkRbUFhp/drYrCPry2C31Sqj3gTNTaR7q27Algs9X3RHN84BeIEkH5YO6KdbT0 +GTsugTJhqZEG6VPnBiMDoDm95z5vdzSx+pMtQtwBmCuNRrM1Ipd9gz60l3n3rjr1D4F NOh4siLQoyqe5ew06KTc5BXxnZPTVByFlObm1KpzY2B3iN2u/Cd+TwNFXiYPfEMsI9rQ I8Hg== X-Gm-Message-State: AJIora8hdB1/grQN6KGdHTOv6YFMN1661SpSciX4nds30mHaokyxjtU1 bRfF7Er1W8bzkHZN3/VJRdF3bQ== X-Received: by 2002:a05:6a00:1a4a:b0:518:bbd5:3c1d with SMTP id h10-20020a056a001a4a00b00518bbd53c1dmr43028461pfv.64.1656028251848; Thu, 23 Jun 2022 16:50:51 -0700 (PDT) Received: from google.com (223.103.125.34.bc.googleusercontent.com. [34.125.103.223]) by smtp.gmail.com with ESMTPSA id bd10-20020a656e0a000000b0040d3613d9dcsm194912pgb.34.2022.06.23.16.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 16:50:50 -0700 (PDT) Date: Thu, 23 Jun 2022 23:50:45 +0000 From: David Matlack To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, maz@kernel.org, anup@brainfault.org, seanjc@google.com, bgardon@google.com, peterx@redhat.com, maciej.szmigiero@oracle.com, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, kvm-riscv@lists.infradead.org, pfeiner@google.com, jiangshanlai@gmail.com Subject: Re: [PATCH v7 00/23] KVM: Extend Eager Page Splitting to the shadow MMU Message-ID: References: <20220622192710.2547152-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622192710.2547152-1-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=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 On Wed, Jun 22, 2022 at 03:26:47PM -0400, Paolo Bonzini wrote: > For the description of the "why" of this patch, I'll just direct you to > David's excellent cover letter from v6, which can be found at > https://lore.kernel.org/r/20220516232138.1783324-1-dmatlack@google.com. > > This version mostly does the following: > > - apply the feedback from Sean and other reviewers, which is mostly > aesthetic > > - replace the refactoring of drop_large_spte()/__drop_large_spte() > with my own version. The insight there is that drop_large_spte() > is always followed by {,__}link_shadow_page(), so the call is > moved there > > - split the TLB flush optimization into a separate patch, mostly > to perform the previous refactoring independent of the optional > TLB flush > > - rename a few functions from *nested_mmu* to *shadow_mmu* > Thanks for the v7 Paolo!