Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752317AbeAEQ4I (ORCPT + 1 other); Fri, 5 Jan 2018 11:56:08 -0500 Received: from mail.skyhub.de ([5.9.137.197]:38488 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593AbeAEQ4H (ORCPT ); Fri, 5 Jan 2018 11:56:07 -0500 Date: Fri, 5 Jan 2018 17:56:01 +0100 From: Borislav Petkov To: Tom Lendacky Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Linus Torvalds , Dave Hansen , Thomas Gleixner , Tim Chen , Greg Kroah-Hartman , David Woodhouse , Paul Turner Subject: Re: [PATCH v1 0/3] x86/cpu/AMD: Make LFENCE a serializing instruction on AMD Message-ID: <20180105165601.fzzzztr52s34vaaz@pd.tnic> References: <20180105160736.23786.45026.stgit@tlendack-t1.amdoffice.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180105160736.23786.45026.stgit@tlendack-t1.amdoffice.net> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Jan 05, 2018 at 10:07:36AM -0600, Tom Lendacky wrote: > To aid in speculation control, the LFENCE instruction will be turned into > a serializing instruction. There is less performance impact using LFENCE > in this way compared to MFENCE. > > With LFENCE now being a serializing instruction, it can be used in > rdtsc_ordered() in place of MFENCE_RDTSC. The other two patches in this > series make this change and remove the MFENCE_RDTSC feature. > > The following patches are included in this series: > - Make LFENCE a serializing instruction on AMD > - Change over to LFENCE_RDTSC from MFENCE_RDTSC on AMD > - Remove the MFENCE_RDTSC feature > > This patch series is based on tip:x86/pti. > > --- > > Tom Lendacky (3): > x86/cpu/AMD: Make LFENCE a serializing instruction > x86/cpu/AMD: Use LFENCE_RDTSC instead of MFENCE_RDTSC > x86/msr: Remove now unused definition of MFENCE_RDTSC feature All three: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.