Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1483763rda; Mon, 23 Oct 2023 14:09:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLlW9/yPLs2N82i9eSxZELE0qucmExjsOX8NBo3pyvFdgP4p9l0UiPEwkOgFnpL2MDVX0e X-Received: by 2002:a05:6a20:8f23:b0:169:cd02:65e9 with SMTP id b35-20020a056a208f2300b00169cd0265e9mr739698pzk.33.1698095385655; Mon, 23 Oct 2023 14:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698095385; cv=none; d=google.com; s=arc-20160816; b=w73cNSq5aTMBSw/msAeFDiI3avPuzqWD4w7Id4bUQb4574zSVf83yEk0AXiFI6XMcE OXakNnq5D61PnJdtQ3QOgXjnFcc7McE2QLhi78c+KBUCS/pu9VlGYnd0FO0+lR6TXd/c PA+s1404Uemrowmfd6cKb4VPlQXfeQT6o9w0J3vCFP1tHvdo14aqL8KTGtY54SGY0+Se m1yxd3IxgV+oca0WB3vIQp1qeqKvJy4dx/wiowsviYeUu79Tt5lttRpcklWC8gx3YPr+ mBZmPzWI9K5Fe80JbDiYfZTmk3RUkezVp68R80FqyrFfDmCmeC2i6nnFGFHskqbYZ8A8 go1A== 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=KLYCoH21OQlImW7e3VilgGgQDI9MudGhOSf9N7VHggA=; fh=xbnTKJzsb2UpKrn+8RcI1jrZUmh3TZBz93BSfBKhj2g=; b=a1GVoUPNGK379VR5Ts7nSlZZ7LdUXDPcGjOnq7Tywc2b5C6zZnU/V0zJ3EqF1ouHg2 SNypbmXJGAaWzOWDFz5EKHJdDB+SA0D5I3WG6N8n+UcQ7SJTyezjMxhkdMeM0uCNTQ3h VOFE9SsjBvWdaC2tugaWv/fowAzszjtGiv9LwGrlIxakP9FkPUf8+HwpXS6TLas47i2B fb/sNIwPCVVUQX8GIHdkBU+bGF82zRORjjlWtZIV7s+rbKJuk1Mc1oDzB+TfpceWQLK5 Lz2jrdC/4VvC074p95O5ggwsm+qXYqHHUybnFEesRcBRI9ZrBoJjG/U88wk2td1clAXt 5Vzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XwBadt4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j17-20020a62b611000000b00690da053918si6822875pff.4.2023.10.23.14.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:09:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XwBadt4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 345A480557E2; Mon, 23 Oct 2023 14:09:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230356AbjJWVJc (ORCPT + 99 others); Mon, 23 Oct 2023 17:09:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjJWVJb (ORCPT ); Mon, 23 Oct 2023 17:09:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21F23BE; Mon, 23 Oct 2023 14:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698095370; x=1729631370; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=L2w/kXBofndyWdYUQVmhwsOzDUT2zGReL0yLPLKLC3Q=; b=XwBadt4IDgi9lg068pF+yi3Xh+56Cr8QhMpVGg3CfOld1a4yj1WLRNid 50gvWOamYfBWHRI80/eLpdOXP/E265MP31Jtf6ZJbYidhBD6gXBE9jZcW Z6KFbhZ4lFxXZGtoD4xErAMN+vZDLIrtAku4iih3NuPaLpRqtlgJaKD3E zLVmJvp8NaG+ucHXfAOJEPirG3MyOoLOQk22fuPuzryEbsFsesV09wdq9 flI+vdAN0MgMWN+HJ96Tnyzl2kUI1xfXsmBVNOAgpcW75pc7w9+RAQ+5K sa6pAh4xf+8Zq0yawmEGqc/5sf+aPRHg71eZrZ5KhUcjXGbjahIMepVg9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="366272076" X-IronPort-AV: E=Sophos;i="6.03,246,1694761200"; d="scan'208";a="366272076" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 14:09:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="758249892" X-IronPort-AV: E=Sophos;i="6.03,246,1694761200"; d="scan'208";a="758249892" Received: from qwilliam-mobl.amr.corp.intel.com (HELO desk) ([10.212.150.186]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 14:09:28 -0700 Date: Mon, 23 Oct 2023 14:09:20 -0700 From: Pawan Gupta To: Josh Poimboeuf Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Andy Lutomirski , Jonathan Corbet , Sean Christopherson , 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 4/6] x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key Message-ID: <20231023210920.p53cxpxptocpgcw4@desk> References: <20231020-delay-verw-v1-0-cff54096326d@linux.intel.com> <20231020-delay-verw-v1-4-cff54096326d@linux.intel.com> <20231023184844.e2loaxlldm4zbko2@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231023184844.e2loaxlldm4zbko2@treble> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 14:09:43 -0700 (PDT) On Mon, Oct 23, 2023 at 11:48:44AM -0700, Josh Poimboeuf wrote: > On Fri, Oct 20, 2023 at 01:45:15PM -0700, Pawan Gupta wrote: > > @@ -484,11 +484,11 @@ static void __init md_clear_update_mitigation(void) > > if (cpu_mitigations_off()) > > return; > > > > - if (!static_key_enabled(&mds_user_clear)) > > + if (!boot_cpu_has(X86_FEATURE_USER_CLEAR_CPU_BUF)) > > goto out; > > > > /* > > - * mds_user_clear is now enabled. Update MDS, TAA and MMIO Stale Data > > + * X86_FEATURE_USER_CLEAR_CPU_BUF is now enabled. Update MDS, TAA and MMIO Stale Data > > * mitigation, if necessary. > > */ > > This comment line got long, the paragraph can be reformatted. Yes, will fix.