Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965147AbbD0UPc (ORCPT ); Mon, 27 Apr 2015 16:15:32 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59385 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964923AbbD0UPb (ORCPT ); Mon, 27 Apr 2015 16:15:31 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <20150427200329.GL28871@pd.tnic> References: <20150427113506.GG6774@pd.tnic> <20150427154631.GB28871@pd.tnic> <20150427164024.GD28871@pd.tnic> <20150427183854.GG28871@pd.tnic> <20150427185344.GI28871@pd.tnic> <61BCF405-8000-43EB-A6B1-2BF5677E4ADE@zytor.com> <20150427200329.GL28871@pd.tnic> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue From: "H. Peter Anvin" Date: Mon, 27 Apr 2015 13:14:51 -0700 To: Borislav Petkov CC: Linus Torvalds , Andy Lutomirski , Andy Lutomirski , X86 ML , Denys Vlasenko , Brian Gerst , Denys Vlasenko , Ingo Molnar , Steven Rostedt , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , Linux Kernel Mailing List Message-ID: <2F6CA156-F03F-4F49-A6B9-7D1D1E1D805B@zytor.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 23 I did a microbenchmark in user space... let's see if I can find it. On April 27, 2015 1:03:29 PM PDT, Borislav Petkov wrote: >On Mon, Apr 27, 2015 at 12:59:11PM -0700, H. Peter Anvin wrote: >> It really comes down to this: it seems older cores from both Intel >> and AMD perform better with 66 66 66 90, whereas the 0F 1F series is >> better on newer cores. >> >> When I measured it, the differences were sometimes dramatic. > >How did you measure that? I should probably do the same on some newer >AMD machines... We're using k8_nops on all AMD, even though the >optimization manuals cite different NOPs on newer AMD families. > >Thanks. -- Sent from my mobile phone. Please pardon brevity and lack of formatting. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/