From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ARC-Seal: i=1; a=rsa-sha256; t=1517295416; cv=none; d=google.com; s=arc-20160816; b=vwfWJIULHzYU0eeAjKm6vWLJywBqNQFAvFLyNagogoB5mDhstG4MTRhAgzUsFfNDxP iCXDMZx0W3wdFpOZn8cjnrLf7ZYy9sH8SNHRgvlNxK5/lznZija3xeChVUcrNFr3Dx34 ClqY+gboT1dq2OrL2bsyE6Cagy6Dg42QtauJyAUDzIOql+6LwvAT/RhM+tln/4KoEkUt dMkqGaZnNWoG9i8nrAFqKMpLnA6BV2vx2yT6nLzancx8pSS6sSVyBFOYevTX8xzgoJtK 712BLfTX4x+8kxNIaq3a1H9kSJEE4Hcvmag+NuMeXrtNs16BlXRxvjc+vcipQ/fxePNv oDsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:sender:dkim-signature :arc-authentication-results; bh=HU8RU8HkmVeHcM9nnbQpm5u/X+KSYRZCIxshGOT5ZX4=; b=UlF/l8yk3K8zdjCddl9CDNv7Ten0EHqEutnI3kRW+8rXjDAUPxGOOHl1Hwz0HI200C hJta7XgBbPvtgoyT5iTCbxfOBrZuwZO4VELLdtwDp8gdcVVx41iuQrdVYqsKx49Yk9gf O0YyVmqPDcEVVQNun6xnZgM0V58Sm/5mPudXbjK4/+ZrxV3DzNlREseTL1iZ+DR2t0lS 9b44BnOFBZRV21NfA7vFR1QKE/3siNc47wobvyRq4ezlxs+3fpL9y9QBBoDRLHxR+JHv NdcDn6xk3ZA/LmSsPLyCj2Wy55U9iCSe90WH8Ef6nNLewoIQpuI3SNWoMhA1t02lzflQ wL8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KDD/brKm; spf=pass (google.com: domain of mingo.kernel.org@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=mingo.kernel.org@gmail.com Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KDD/brKm; spf=pass (google.com: domain of mingo.kernel.org@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=mingo.kernel.org@gmail.com X-Google-Smtp-Source: AH8x227meoa4OPx8MQ7aUbHJdvGYZtDztl1UkhENaMZSA+fXT/ioTBb57fU56/2KqagRdzXZiOAvJA== Sender: Ingo Molnar Date: Tue, 30 Jan 2018 07:56:53 +0100 From: Ingo Molnar To: Dan Williams Cc: Thomas Gleixner , linux-arch , Tom Lendacky , Andi Kleen , Kees Cook , Kernel Hardening , Greg KH , X86 ML , Ingo Molnar , Al Viro , "H. Peter Anvin" , Linus Torvalds , Alan Cox , Linux Kernel Mailing List Subject: Re: [PATCH v5 04/12] x86: introduce __uaccess_begin_nospec and ifence Message-ID: <20180130065653.gsp7blb3jttd6e6t@gmail.com> References: <151703971300.26578.1185595719337719486.stgit@dwillia2-desk3.amr.corp.intel.com> <151703973427.26578.15693075353773519333.stgit@dwillia2-desk3.amr.corp.intel.com> <20180128091437.4lbll5bev7mgdpug@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590732028739069125?= X-GMAIL-MSGID: =?utf-8?q?1590999558437716839?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: * Dan Williams wrote: > > The flip side is that if the MFENCE stalls the STAC that is ahead of it could be > > processed for 'free' - while it's always post barrier with my suggestion. > > This 'for free' aspect is what I aiming for. Ok. > > > > But in any case it would be nice to see a discussion of this aspect in the > > changelog, even if the patch does not change. > > I'll add a note to the changelog that having the fence after the > 'stac' hopefully allows some overlap of the cost of 'stac' and the > flushing of the instruction pipeline. Perfect! Thanks, Ingo