Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1148557rdb; Fri, 2 Feb 2024 15:59:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLzHt3kr2x4NkrC5iiRCcrDLdjn4iIvQ5Yfr5mpU7P+hnJb7Gw6gGip77iMIHaEu7s7a9l X-Received: by 2002:a17:90a:c718:b0:296:44c9:4e7d with SMTP id o24-20020a17090ac71800b0029644c94e7dmr2930519pjt.9.1706918393560; Fri, 02 Feb 2024 15:59:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706918393; cv=pass; d=google.com; s=arc-20160816; b=X0TAuwIOLHDAbi5fYkXIy+4ZV4AxFfsNYPfTzRyldqhz6UMing61g5pLvp9702mNFn TPl2xKrcD3BZ67a4RpUisnmzg36ZPQtT2haxB2UQ2C4QijSA1j4N3m9Ks6d+TdubGqUJ TBS9Y4B3MkUxrgWOowUfcTpYeA2c5ITp+RbUDqc0jOBBrqQCtx6k7C3V7+g6r1vjARZX A2Ar8wBCNNK9MtNTJHDt574L6oFxxUvzWPkvd0NzWYpYN7vPO01C4sL77ALgtzR+AHVn Y9XgSqiIrV5bAHFpHga4A06ogUuTuvJ8XuNM74rJBbtETJoyW0j/Ns/UiOK1PIR+NJ9w a39g== 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=VIPMi2PXlW3A2R0PutKjKTcnGIuSQpDGDEvPuIpe2ns=; fh=ZDEKbguKzXz37H4SATPUq9l8e6cu4FzUMpSjiAgPbMk=; b=Q3xivPR7K30nbuUfiqHTvH1/aYDlmT9BFRG2oFwlThvnVpNRmxuam0eZezFk81yYyr xkRgamMqzKm4+pLWxG6Cjix69zlUcYcO0CYP2mZI/9muT2JRZDP9stoW0CR8ptatmdNA ucRedfSjfifz0u2vqwzYA5GqFK1TCzkYjb5/bey/151ll82llA8v2JO2slkzb0h0X2ja NvZ+tZzZQ6PYuBsUoGBdGtnYNJ9rJGZhoLpmQS21xPPFD0gkFxgbX2W1KPq0gFW6Zboa qJlKd08Ryy1p8fRkjNxFQu5TWd/CVvUuhHusTvTBsvX3BurJWh6FbnWYVWv8PwNYdlkV EcKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OKgdLLSG; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWczhcICnYdDoDgD9SRLaduSChbuGPBRdtnpjXqTPE90DJPmHAeA8x23nsFSnrMjeBvibX+3YfxS15nkIEv2+hRH48u9mOH/qFD8RPVRA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d24-20020a17090ab31800b002906859084dsi668342pjr.36.2024.02.02.15.59.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 15:59:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OKgdLLSG; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1C1F4B28518 for ; Fri, 2 Feb 2024 21:32:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48905839E4; Fri, 2 Feb 2024 21:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OKgdLLSG" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 DB5ED83A03; Fri, 2 Feb 2024 21:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706909497; cv=none; b=m9leEEsqZeBLTKhtZKRw9XnxildElhpPpOYJc1Yz80/DnxYh7MagB5kSD25Vpnky20DECKGDEH6EPgevKYsrjwmKgGml5Pc1CHG9KhL6xQrwxhlPMEdO8dECpZbzwdDHRFR5WUtLIe4lZXaUfM48nZwXjHNLSHudEb3nBjACLe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706909497; c=relaxed/simple; bh=e/jtn8sn44EpFq31C7CYmB+SiierH0OvgSrhIK/xiS4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KG3gGPtCxCkpv/gGEvyx6UId8wyTw1Km0w/sZw22YfAfIdx2mMzpAuijdZYl+dipoIT0qpDvOC+duW5ZcrD9sXrzif3l0sp9U4sVAn7/Z7J4Gieq2BED8EvmKA9N/dWH+c4j6dyMdQ3Wg3eMTH34St21iYhkdY0SGh4m2n/4Pj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OKgdLLSG; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706909496; x=1738445496; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=e/jtn8sn44EpFq31C7CYmB+SiierH0OvgSrhIK/xiS4=; b=OKgdLLSGYbzT8o94fCo7cSVgzI3lU9DYBgmv0Icw9nvaEijRHRzVxiLj ZIzMAT4GbTvObt5Xte+MlsAprBNjRywiQFrdOt+NXu0PSdno+Vyv36Qkn 0MY+ikNlzhF1KD7/lCwGvAFHmLOoXWFnwOSsqX0zGPSqXmPkRmX8aHyC7 IEEcmXIbgyiIsN+BrJ82xNOBx4s3KvN7jKkjSUTBhpmcokqEG5X4D6sI/ 0sI83L0CuNG0E3iYCKpW3B4FxYEOjdx/3LCOJX3mljcHwdUJ9NdBOuQMK 9VFAEdLeqawxTCfpLmJ5rsGpD46tS2U+3FB7h6GfkL749fmxVMXsID658 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="143422" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="143422" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 13:31:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="481566" Received: from shannonw-mobl2.amr.corp.intel.com (HELO desk) ([10.209.74.93]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 13:31:34 -0800 Date: Fri, 2 Feb 2024 13:31:32 -0800 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, 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: <20240202213132.kvdyz3dqqkzw7gox@desk> References: <20240123-delay-verw-v6-0-a8206baca7d3@linux.intel.com> <20240123-delay-verw-v6-1-a8206baca7d3@linux.intel.com> <20240202032909.exegdxpgyndlkn2n@treble> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240202032909.exegdxpgyndlkn2n@treble> On Thu, Feb 01, 2024 at 07:29:09PM -0800, Josh Poimboeuf wrote: > 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". Yes, will send a new rebased version.