Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp594318rdb; Thu, 1 Feb 2024 19:29:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdD9cTTJPBv6t1hhry6CXaVnkbshL31Cfs06ZEEt+dKVfqNjB5J/G2hJoa0drcaGPXg1Ns X-Received: by 2002:a17:90a:df8d:b0:295:fd18:6ebf with SMTP id p13-20020a17090adf8d00b00295fd186ebfmr5756946pjv.47.1706844562518; Thu, 01 Feb 2024 19:29:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706844562; cv=pass; d=google.com; s=arc-20160816; b=zecjne2HqFFMfJBNmlv3yNAFekAXXFMBIPpdCoiXsEI5NFhQrZoWA+fu4RnwCp9swp keNwyUThASMs0JUkJQ/plRxetumk4K1ZEJELcR2V6i6QPHUr3tDFvEEoFU8pGEsb9ejX zA2BFehGY2p/CUVm4p6hrXXiZrIQTBbGiwVChe3RnvEHvhD/adondmn0OA/cgRoVP703 iJmWwP16QBrajwUeKtq4GagV/IUUtMG5XsOjtEVf2MdsV8E4yFDOvaWOiAn8IdpYFSQ6 TMZX8sS2ASUqsdSXWmslfa9aavsAiuNEbklGeFHzOVo4takHF7Oto99wfG2pblGzRFF9 2FBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YZ894hFfSOxBb3HiTp2esbaPaM7Q5sDPdZ7hCm/OUYA=; fh=wAU7tIbjeDI5h0J3BFNNrKo9ZfT3SJBtYzlON7tice8=; b=ZNWGx77NlP2Jzvr5UQNRM+E/wzYh6P5qe8hJONq5nnMJ7lROOrkJiLNmaU/ScYjbJE bl6pkN8NSQQmNB6N2Br252bqVIkaATcFLEOLQRKps8FfSeNOmDfsJe+aHhZxxjpHAS3f E8yc5MQcDWPG5g2euNDHlxpOHSqVWKsxHVZrealp2s20Pb193Kx/roCfgfwPXF41Z4Mi K7SQHE57YdZD6m2D18fRSzFAoRcDYQiQtnF7lxdD5jQTAtSDaW9UdRU75TvoQRmfYkSX SeuGEUu1s3kup98zqU9k0XeUY1loxMp54XrSLrCSK5WyVxoj8tURAiWSGff/qB3OhjrJ iDvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n7lP3i+S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCX9qAzfB8ZdR5d70JM/2hkMeVRsfYfJGdLVAds2iVqkyX8LfnaVumSjzje41qWpznwRUoUr7PndNnFCZpD2zSMgBm4Drsq/3QsSzXJ9uw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jx14-20020a17090b46ce00b0029068752b39si4785059pjb.167.2024.02.01.19.29.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 19:29:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n7lP3i+S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 21771288429 for ; Fri, 2 Feb 2024 03:29:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50147EAEA; Fri, 2 Feb 2024 03:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n7lP3i+S" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73320DF5D; Fri, 2 Feb 2024 03:29:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706844552; cv=none; b=jkKZkXg29zPdph6Dx8v/sC/xYAQ8Sm5Ddud/tf8C3EaajZMgIElUE8V6DyfR5ZrKcw+nofSefGzRcRxZYf2tHkupVBFGshwIfmgKAuyAtrY+Tt6TXeVt+S/fDcNgwlyVByEZfv+3kjQFMb4OnDGoL+ayP4pUuMASL48GrG0Y+O8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706844552; c=relaxed/simple; bh=hrszDQjg1r99rOZvRO+CbHKbrtAj33R5nUJ/aP8OlAo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xe40JYJirtlWmH7LvWLH0XWD81VhkNT2V3UUeU8iM4P0F9nKqwCCZkADQr71nLJqugsyvHIixHBqMZfT9o01tQ/zz127tQrSRtUeZSZRlaaUKoqgx+1wqPJtivESGgB8VQNCK2GeftiPSb8sgTjp19ROuAbk7+cL5sfyCTlqCx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n7lP3i+S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E11C433C7; Fri, 2 Feb 2024 03:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706844551; bh=hrszDQjg1r99rOZvRO+CbHKbrtAj33R5nUJ/aP8OlAo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n7lP3i+S1HK19Szbki1gpNcjT56ZAc3eU1c3GK3xyLzWt5U7eFMUedktdxBnEFo35 qrCEVhbm5rO0QS38JimDBYic0HvMzS+XnXrMQuGfrWWFSeV/w2Zw7o3um3rCxDLmYx EhrFnvUlOuHn79KhfqxaS3Y/dRsC36NFEkihtW+LBME0hvO/5N+3LpUIP1720keN6Q EAwb+x8qyAef49fQ5fZWb67Bv6l+vEmJ+tjeDW+RPBBnCuOWcRHvp28cPkoG4MjuGs +a/JN/1x9h8wY0IdiardxibIeTrtfu1FUJhfTiKsihgyiX7cBMIYxNI6uHSoKhy/UW 9hi/sHprptC8Q== Date: Thu, 1 Feb 2024 19:29:09 -0800 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, Andrew Cooper , Nikolay Borisov , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, Alyssa Milburn , Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com, Alyssa Milburn Subject: Re: [PATCH v6 1/6] x86/bugs: Add asm helpers for executing VERW Message-ID: <20240202032909.exegdxpgyndlkn2n@treble> References: <20240123-delay-verw-v6-0-a8206baca7d3@linux.intel.com> <20240123-delay-verw-v6-1-a8206baca7d3@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240123-delay-verw-v6-1-a8206baca7d3@linux.intel.com> On Tue, Jan 23, 2024 at 11:41:01PM -0800, Pawan Gupta wrote: > index 4af140cf5719..79a7e81b9458 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -308,10 +308,10 @@ > #define X86_FEATURE_SMBA (11*32+21) /* "" Slow Memory Bandwidth Allocation */ > #define X86_FEATURE_BMEC (11*32+22) /* "" Bandwidth Monitoring Event Configuration */ > #define X86_FEATURE_USER_SHSTK (11*32+23) /* Shadow stack support for user mode applications */ > - > #define X86_FEATURE_SRSO (11*32+24) /* "" AMD BTB untrain RETs */ > #define X86_FEATURE_SRSO_ALIAS (11*32+25) /* "" AMD BTB untrain RETs through aliasing */ > #define X86_FEATURE_IBPB_ON_VMEXIT (11*32+26) /* "" Issue an IBPB only on VMEXIT */ > +#define X86_FEATURE_CLEAR_CPU_BUF (11*32+27) /* "" Clear CPU buffers using VERW */ This will need to be rebased. And the "11*32" level is now full in Linus' tree, so this will presumably need to go to a different "level". -- Josh