Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp264676rwl; Thu, 23 Mar 2023 16:02:35 -0700 (PDT) X-Google-Smtp-Source: AKy350b5QTjTuv3Q01l6VgvWQD93cPtogAhzxEW+XRwOfD6mOkkLOwFAb4Xl/xMPsQHet7ZMK5jA X-Received: by 2002:a17:907:c087:b0:8b1:779c:a8b1 with SMTP id st7-20020a170907c08700b008b1779ca8b1mr760602ejc.5.1679612555384; Thu, 23 Mar 2023 16:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679612555; cv=none; d=google.com; s=arc-20160816; b=PBKdQlxdlcrMWeOuc1tI6DJN/HV1maGDcULP/50MWlOhgDcjpPkSf4ljXp1YbNy/Kd l7PIAJMzUhEPUVCBufrD3vlxa3sDEODxi94qnIa1dswnojmA6Az/QO2jI78pJ6Z7nQHz qFGzrykMJWvYBTHkg1V5vxmsAV3/EzJrucLOL7Z47pHR8qT0hTtu9KJO74KpNqsXZMPZ lBpnr+j9u+L9+Ld6Itk7ooKwo0Ty9+QUaAqGQOV7frRRz4OY/Lp6rtebEL7JNyNMhcOj K+MAbRZHqJKNtgwMA4afPxWCzb/seJomP6jyZ/ff4Kfx5r30MM7IPo/x3YtzHg/sCdM1 gUMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=W6+Qn6EJMHI+3I/L2O6DcxdAJ0N7a/1zdIIWx5jxJMI=; b=UISTYhjcCA2CXOhWRVTohiV+iea+KsqpyX8Z82CVY8Cz+D1H61PSNYsOfOjfaeGIej 90LN9qNrVumpHDiuvj4CIgswz2tguwR8GjN9XyNGhGTa7JMXHumCE5ywiyv15h2pR24x 2Xfrz88p6wBbMuGgvnCDGYGaq3LmsWLk1zn6SZjuW2zwN8MGFB5GgIqkoD0zg2dXRiWU ovWHzXu/UWt+pGJYj3vF5Qksd87Z//Lc5YOGBBAWdiez/bCZH9IuZ53dv9X2+aHv46ZK yt60A3w+aGiyZbGU5KxsX0ZYJvcjmaw/yv9d4fao1nsbx7JjLcYeYDKmSdz89gj9Rm5+ FcIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lPRzXXsm; 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 mb6-20020a170906eb0600b009236817e43asi17165314ejb.380.2023.03.23.16.01.47; Thu, 23 Mar 2023 16:02:35 -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=lPRzXXsm; 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 S231444AbjCWWxn (ORCPT + 99 others); Thu, 23 Mar 2023 18:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231738AbjCWWxT (ORCPT ); Thu, 23 Mar 2023 18:53:19 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D440F2ED62 for ; Thu, 23 Mar 2023 15:53:03 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5458dde029bso752397b3.13 for ; Thu, 23 Mar 2023 15:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679611982; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=W6+Qn6EJMHI+3I/L2O6DcxdAJ0N7a/1zdIIWx5jxJMI=; b=lPRzXXsmxANtqW5g73lEWfTE9t87KJhwBulJ2jb4CXk1fhH834elw1IMt+G2RURXet uS2wvECcsZveg4IYcaPYOJKetzv9Figak4PRmehi0PaUJ8oFmgOi3kylQRF0ELdh/GKi xmAsx0GT54177CJ1ns9ILiUH+rowuFK+5N8+l3XEoO7xDB006uypOuUYK0qFKP1d0qyi nP7pFMSVzP68WM1fuLgJmJlePpq+r4YABvtBxXg+UlVFHJLmsWGlgrqft3CZO2gsXznf DrREFzhQte4JrGxlovC6qHX0nLzs4RtFEsANSt/CKLgnHgLcnydvfTSE78QgKaojbTM+ PFVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679611982; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W6+Qn6EJMHI+3I/L2O6DcxdAJ0N7a/1zdIIWx5jxJMI=; b=BF5odyYT5Q5PuLpSjrQm8U1q8st/wv9W0cG+b0nVPRqf0RBl0IQdsJDKr3wOxvwntF GfKK7L5IX8tTDXle1Sy2WNyVEiLs4MBJmHVes9pAznLxwaE5uH69f4H5VYnOFCvhzL5j Lzdm+ZkRfK7cXTIXihyxQi4xTQJzyPlniSiGllbP+qwJexLdRcZX6SJ4Zlk0bCp9Bv++ Szw9t/TwDbt7qpfLXt2Qq9QcKAkV0uvWlHxN8TyKZPsiDWT+aat1frhXCisK6f2S1lHc dsSjSXJAZusdoP7RvNnZ/rFbPQatO+vIR+HSak5MtuPUiEkYgW4NZ5u+I+PDjNIZv6hV 4lxg== X-Gm-Message-State: AAQBX9frMV2wjPtFmmtsvih6Jtww/AC2XGmGNOrgZidTG0jsA8eGRnIO ON2OsihoHsI3hwVEneZkPD1fxkEdc5Y= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:af5d:0:b0:541:8285:b25 with SMTP id x29-20020a81af5d000000b0054182850b25mr78379ywj.10.1679611981974; Thu, 23 Mar 2023 15:53:01 -0700 (PDT) Date: Thu, 23 Mar 2023 15:50:34 -0700 In-Reply-To: <20230322013731.102955-1-minipli@grsecurity.net> Mime-Version: 1.0 References: <20230322013731.102955-1-minipli@grsecurity.net> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <167949641597.2215962.13042575709754610384.b4-ty@google.com> Subject: Re: [PATCH v4 0/6] KVM: MMU: performance tweaks for heavy CR0.WP users From: Sean Christopherson To: Sean Christopherson , kvm@vger.kernel.org, Mathias Krause Cc: linux-kernel@vger.kernel.org, Paolo Bonzini Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_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, 22 Mar 2023 02:37:25 +0100, Mathias Krause wrote: > v3: https://lore.kernel.org/kvm/20230201194604.11135-1-minipli@grsecurity.net/ > > This series is the fourth iteration of resurrecting the missing pieces of > Paolo's previous attempt[1] to avoid needless MMU roots unloading. > > It's incorporating Sean's feedback to v3 and rebased on top of > kvm-x86/next, namely commit d8708b80fa0e ("KVM: Change return type of > kvm_arch_vm_ioctl() to "int""). > > [...] Applied 1 and 5 to kvm-x86 mmu, and the rest to kvm-x86 misc, thanks! [1/6] KVM: x86/mmu: Avoid indirect call for get_cr3 https://github.com/kvm-x86/linux/commit/2fdcc1b32418 [2/6] KVM: x86: Do not unload MMU roots when only toggling CR0.WP with TDP enabled https://github.com/kvm-x86/linux/commit/01b31714bd90 [3/6] KVM: x86: Ignore CR0.WP toggles in non-paging mode https://github.com/kvm-x86/linux/commit/e40bcf9f3a18 [4/6] KVM: x86: Make use of kvm_read_cr*_bits() when testing bits https://github.com/kvm-x86/linux/commit/74cdc836919b [5/6] KVM: x86/mmu: Fix comment typo https://github.com/kvm-x86/linux/commit/50f13998451e [6/6] KVM: VMX: Make CR0.WP a guest owned bit https://github.com/kvm-x86/linux/commit/fb509f76acc8 -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes