Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1414658rda; Mon, 23 Oct 2023 11:49:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiWPFKB9oT3jIQOMEWQPLjl8BEDqXZCXFb/DsPYVnPqtXxjjGOEqLdTDxPiP51OLsfDmAq X-Received: by 2002:a17:902:fa47:b0:1c0:afda:7707 with SMTP id lb7-20020a170902fa4700b001c0afda7707mr10286801plb.34.1698086945957; Mon, 23 Oct 2023 11:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698086945; cv=none; d=google.com; s=arc-20160816; b=0In8mkWuulS7taYYhj7VoiHmvx8AmI153sZZX/NTZ+tWhj5tPn9Dz8l7ImN5o1Ve1i xTgp34VB0SxgGDfm+UiMxBwpX0H/hdHTwatdGJuH8QIdWZS4e6Msb/8+DduKrqGIngJp Ny5Geo3gvG4x3Yce1Bu2lvc1YTMUYrVDf2TR/oFC9FMtfWRpklXdjdrNByo2uLGNkXcq 1eJgC2mVDDfDZG4pr1feQpB6r6hbjJleCSwDwsWWQIkjuYyHpJturaP8v9jPR0XcAaPV bmGwzKXDPQXPIL7VmNmHucdkUucpURpmUNPutejYF5E3w98VoYgx/38VbosR+ZqR2z0O 6FHw== 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=oTlthJEUIKO/MmY6wYf5or9onGyY50Pm2bvlRzt8r5o=; fh=aHtWyo1LftguigmcolvEUK3WodFxtdvTlGnLJzRaq3I=; b=k0G1xJhuypqhqjoVTQmCIJMUsBtazkTIsf8Tz34DtgW/0uXINO6MVablTcp5gbyEy7 R7vg8sFgF5TQX+tl5mFvEmd5U4dZV+YIoGnAd54gZjgkShI1gI/82cYno7bWeEizA/Ki KvJXAwttuvk+holiYl7u71TjbKVecMrSdciniv5TG6ctaxfWXlEfQsK71h0oHNJHb18h eo/814GoJgVoVVVfFkBjWANSLQGhcXxC4kqitjDs2ngEyQSaBBQOdNt+bg2oBfwJzfUF WTZoE9WVLCH1pVEYmg6AkRgefL5PmqOep5nH2LS/TiUyMUQRnz2Krv4DQf0sy+aP7mKK rJgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VKZotqrz; 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=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d17-20020a170902ced100b001c5de4a5b4esi6969178plg.597.2023.10.23.11.49.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:49:05 -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=@kernel.org header.s=k20201202 header.b=VKZotqrz; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6ED7F80785EB; Mon, 23 Oct 2023 11:49:03 -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 S229482AbjJWSst (ORCPT + 99 others); Mon, 23 Oct 2023 14:48:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjJWSss (ORCPT ); Mon, 23 Oct 2023 14:48:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A3A0FD; Mon, 23 Oct 2023 11:48:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9937C433C8; Mon, 23 Oct 2023 18:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698086926; bh=cvYxySdgl+SSffKthUQYcmnzcQEhBW8ys75F8wjA2xU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VKZotqrzZy1mTRr7FWkB0d2qDIiiQGAJ9bDjq+VTRDfn+3mivoqDZayOVR4oTcnrN EAYAlAlDg/m724zZLBIEUI4oV4lX77WZFtmmX2bgkv8j3NiArP49fyYjmGLhdxOGrW YCSm13ZhYrH92UNA8Ws1R6a56mCdSOE9GcnaeSW1BCERRL8e+ONx5oGw3IBLQfwS9e vIfG/yJSzcVitPHnM+h7avJB/PLEzShMotgN/aCtSj9cTxE0Hqr//UA4X4AuC9yUYd j5NMZmYoJ52CPpQXFzEuCATDZnW72dFUjYgjNYixYXWYZ8qBBppAsbiLIRhNPrpkvh aqVl+oe4EcOzw== Date: Mon, 23 Oct 2023 11:48:44 -0700 From: Josh Poimboeuf To: Pawan Gupta 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: <20231023184844.e2loaxlldm4zbko2@treble> References: <20231020-delay-verw-v1-0-cff54096326d@linux.intel.com> <20231020-delay-verw-v1-4-cff54096326d@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231020-delay-verw-v1-4-cff54096326d@linux.intel.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 11:49:03 -0700 (PDT) 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. -- Josh