From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="n7lP3i+S" 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-doc@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