Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp737502rdh; Thu, 26 Oct 2023 14:28:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsBLjw3fbGZxerpElnDhViM1HRZ1Br7Z/sNRmsjKjzb2sSbUmgbrg0epHMhrho2OVA+V6B X-Received: by 2002:a05:6358:7f0e:b0:168:e4c1:eb9c with SMTP id p14-20020a0563587f0e00b00168e4c1eb9cmr1166514rwn.20.1698355687861; Thu, 26 Oct 2023 14:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698355687; cv=none; d=google.com; s=arc-20160816; b=WoFOeef1rCKsseM1BP5NpNPGxj/tlbXkh0AwIg5EO+wmVSlhApbX5B9z8xOPWQp3fG HKbLIwYo3uVjfJdD05BL9kwqSljHqnKTn9QQVnS7g/tpNBntCyysziGOG8bjKxMhroqE 6hMMc3STs7/maJr8cbYLiNDwBu6Lbfm7VaoaWnRy0e+K9zw+QvdjjAplppqnMerJgCB2 SlKj9tsblazj9wJLIhLplh3U5izzGcnHaiALajdiuSgDRSFJBa4EkMJtdGG7VRkgpTnY n+j3ra9/x4oa3ucReuucUmIPNWwyyyIBhPX4KnjTXMDz/6bhOOXNpWnvBfHXqZ3nJBRI 1a2A== 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=gKkuh+VFckCEfP2MdWP8Upz2ZcFep0GFN6lHOCrdsQI=; fh=WKr3UfMxhTZB20e6PBjls5vGIl/XClUxQy7NcuDEQJM=; b=tRrHSBi+F29mLDZMgClLlpnKRw+H/BBO3lo3KcXS+2bjePj6wHT6hVXbkTqYjVLNpf fzgvKEWRGnbQifekh+BMe8VW6aU7aiZNSuVQKaA3ZOU3e8qB//mTlsGe/jPThOxIBius Ria1OacEIfHxXwMGkls0ZP8ozaW6V8jgbS3Oeh8uM0+tLa6E98wcPSwbQiV9XHLOk4rL 2QVTi/wm0Y9m6Te6CWU9PefJECDcB0czG5DjZp52GcfyIK5NDihBXl3VgHJyR1xabRto SRbsFEUYL6ccNB9oc8bkjB+X20xAwd+sveqBbl91T82LcF2PymATFtpc4n0AcPFto3CW s4fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RutCpXCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q127-20020a0de785000000b005a7be232979si278859ywe.562.2023.10.26.14.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 14:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RutCpXCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B59BD807799D; Thu, 26 Oct 2023 14:28:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344829AbjJZV2E (ORCPT + 99 others); Thu, 26 Oct 2023 17:28:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjJZV2C (ORCPT ); Thu, 26 Oct 2023 17:28:02 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D89C5C0; Thu, 26 Oct 2023 14:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698355681; x=1729891681; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8J9BNPgv1m27uO2LItak+IFRE3PymktIEqwgh/yZAck=; b=RutCpXCzQa9KFzu8waeeSZT6IpiNNOCnqsj3UIjxR3GJoGtYPt8cVZws uUsgbNGreZcDByZVAiHcP124CE/IVcurArFbNhGepNtJ+AiCVLwRDHgXX X9CAmB8hyg5i7E9Sdqvx3dfZroj9jRX39HaIder76eO0yAB6LkNiWespb P6aYV/oE13RoA3s+Ak/aFi1NwDsfmNaXE2bheZ16RPV7E5mrGKunSIGA2 OYZutNMNSduZSV58Z/V/1sApfT+gKmPJcwiYfIDGXDJN+xIEhg/hUVq5E gYzP9CdxDuhlk1OG1e2FZeeGYPKwgoJJVr1Kk4r3hCnq51kJa2tD6qMbd A==; X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="473895758" X-IronPort-AV: E=Sophos;i="6.03,254,1694761200"; d="scan'208";a="473895758" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 14:27:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="1090716183" X-IronPort-AV: E=Sophos;i="6.03,254,1694761200"; d="scan'208";a="1090716183" Received: from paseron-mobl4.amr.corp.intel.com (HELO desk) ([10.209.17.113]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 14:27:21 -0700 Date: Thu, 26 Oct 2023 14:27:21 -0700 From: Pawan Gupta To: Sean Christopherson Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , Andy Lutomirski , Jonathan Corbet , Paolo Bonzini , tony.luck@intel.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, Alyssa Milburn , Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com Subject: Re: [PATCH v3 6/6] KVM: VMX: Move VERW closer to VMentry for MDS mitigation Message-ID: <20231026212721.pukgqvg4izmyfvzv@desk> References: <20231025-delay-verw-v3-0-52663677ee35@linux.intel.com> <20231025-delay-verw-v3-6-52663677ee35@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 14:28:06 -0700 (PDT) On Thu, Oct 26, 2023 at 01:17:47PM -0700, Sean Christopherson wrote: > Alternatively, and maybe even preferably, this would make it more obvious that > the two are mutually exclusive and would also be a (very, very) small perf win > when the mitigation is enabled. Agree. > - vmx_disable_fb_clear(vmx); > + if (!cpu_feature_enabled(X86_FEATURE_CLEAR_CPU_BUF)) > + vmx_disable_fb_clear(vmx);