Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp213535lfu; Wed, 30 Mar 2022 21:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTHnZgb9v7s+txD5MYHWWmoLDkHkyROFXenIMOaS+pi59RZv/VZGV7RP2JIh+7ZWUkmbOC X-Received: by 2002:a17:90b:1d8f:b0:1c7:a0ac:dc99 with SMTP id pf15-20020a17090b1d8f00b001c7a0acdc99mr3994560pjb.130.1648700160579; Wed, 30 Mar 2022 21:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648700160; cv=none; d=google.com; s=arc-20160816; b=fGs2jFeIT2rPYeGx/ZIx6kICPm0p1hoX+83iJSwMjYoJ1zF+jJvwTFiVtivf4tj11p x+6eyKbCj5fZXtEHGMPEU7Leh35dX+uv6AWWVXj7rdr2KDpiqGZ00wfwTw/60CcG9UZr kGYY+wW4XvZxk2IP+WzitONPjoRFOY1peVNcMdB9ctqbAAW4IW8ik98LiyVn0Lk4IBr9 NA/vUpOPpCJIz/12xo90dTVucM5MIbj6XEQci0mF4hr+ByL3SXYQn8jFAVPNBdG9rq6A v/SD8+hYDf1T48gIKTsv7ibPkz7RwLBzC/VlKAHdvX3AHFcjTgKDW0FctFCi8OpE5ESx caZA== 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=vjcQWfLhbG0uWlWmdRXNd421Er7E9z2hWWjFUh0KLac=; b=Mjmr74yzPePEFoh0Ki4FQujNfHNGqCPoDBitXcm2tbSSmpCU6B4iJdvicqJAx2rLpJ MU0YLyFsbu07BgCUfxE7YEmAKdJ0DPRFtISZLNR0bOarsEe4C87l1m5IhGXcpWrx+lWU hYGbG2QQZRP5kpH+qodn+1Kfi4lBCxX4kHelttjz8rkI0DZP8yQJJI79nqqXjPauL8kV TQZ4lvgWCM03RPxfi26MfBuGORfFC1W0i/Rdl7ycDAKuFpvvlE3u/doekM0N9yIRbUmC sPB2Osur8xfXV4QGnJ8dJVfF5FRUNItsN6wmeWhG1tgBXPp9yemJVyJ2yvsIw9EskpRM DqCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=OGLO94A5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b3-20020a63eb43000000b003816043f176si22821875pgk.875.2022.03.30.21.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=OGLO94A5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C31C71CD7FD; Wed, 30 Mar 2022 20:23:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237098AbiC2WaC (ORCPT + 99 others); Tue, 29 Mar 2022 18:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235540AbiC2WaA (ORCPT ); Tue, 29 Mar 2022 18:30:00 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061A46333 for ; Tue, 29 Mar 2022 15:28:16 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id a16so1974277plh.13 for ; Tue, 29 Mar 2022 15:28:16 -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=vjcQWfLhbG0uWlWmdRXNd421Er7E9z2hWWjFUh0KLac=; b=OGLO94A5JWnv/1HgSvDkWtlZJ3KU0e1HVGPbLk1//DxgmJp5CzBFGqzrXpYKOet3CI MRdJXVjjM/YvN6nR0cdWOtpHtnrIaBS8AGoqWHODJ1D3gmNv7gKi/29MLo/3pNmq8BXr B1Is/E6Y3bdgDcyCcoaVmdiPfJgUdpKWNMbxpMxQlSHg1/wrvj1TvGYhWtfUV0Sxrbw2 LPm/I0nN8vCvFXQf+AVGIqSE/SU8aLItoAQFJ626eiC4xjbHLmSNGjuk2t0eQYd+xAcx dsmBEMPa3ZexRfAacNlqhWctL1dkGfh6QS9hihyJt2JJNu/Yhblhckoiyax1sVGHsUJG Mh9w== 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=vjcQWfLhbG0uWlWmdRXNd421Er7E9z2hWWjFUh0KLac=; b=1wsUk9F8agMzFGS+PV26ljd5enVnKRNvhkvxwj2Q4Fk5FG6AeaRespNnH7SUlniDix FAM7n3Jikm/Pa5J0qpjdmyxbV0pIR3XGf7cXu2z3MHxAGjcQWC3QjDb/I06RRrEyhr9S Lh92+EWcj4Nlv9ZKX2RH4rEcuPBs1A4LwMdg/t98xxsb4mEeRQtxGu0z9ujrFGAPdtXO VpH8SAcyjPAP0Tb1a/3T1gLkjDgDZQ1IFZX2ktkbl6aRTJRD7DtsRy/8xiWBDefvC/0S BnnR9Gwo9McVWKH0JXz2t8hdjd1gYvoupiDaG57zjourWGAEunQ7Qp2cCIhsLEglSGFJ Ujcg== X-Gm-Message-State: AOAM533xo1oO5i2g17ZuIcmOaWS/YwCeR9/ceuX1D4I3Wb9pECdlj2Ha HZMSGT1a8yUF25R0Bb1KZxusDg== X-Received: by 2002:a17:902:e2c3:b0:155:c75c:335d with SMTP id l3-20020a170902e2c300b00155c75c335dmr27420796plc.33.1648592895356; Tue, 29 Mar 2022 15:28:15 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id k62-20020a17090a4cc400b001c7ea7f487asm3868557pjh.39.2022.03.29.15.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 15:28:14 -0700 (PDT) Date: Tue, 29 Mar 2022 22:28:10 +0000 From: Sean Christopherson To: Mingwei Zhang Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Gardon , David Matlack , Jing Zhang , Peter Xu , Yosry Ahmed Subject: Re: [PATCH v2 3/4] KVM: x86/mmu: explicitly check nx_hugepage in disallowed_hugepage_adjust() Message-ID: References: <20220323184915.1335049-1-mizhang@google.com> <20220323184915.1335049-5-mizhang@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Tue, Mar 29, 2022, Sean Christopherson wrote: > > Fixes: b8e8c8303ff2 ("kvm: mmu: ITLB_MULTIHIT mitigation") > > Cc: stable@vger.kernel.org > > I vote to keep the Fixes tag, but drop the Cc: stable@ and NAK any MANUALSEL/AUTOSEL > for backporting this to stable trees. Yes, it's a bug, but the NX huge page zapping > kthread will (eventually) reclaim the lost performance. On the flip side, if there's > an edge case we mess up (see below), then we've introduced a far worse bug. Doh, that's wrong. The whole problem is that these pages aren't on the NX list... I think I'd still vote to not send this to stable, but it's a weak vote.