Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965064AbbD0SOU (ORCPT ); Mon, 27 Apr 2015 14:14:20 -0400 Received: from mail-ie0-f178.google.com ([209.85.223.178]:35525 "EHLO mail-ie0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965042AbbD0SOQ (ORCPT ); Mon, 27 Apr 2015 14:14:16 -0400 MIME-Version: 1.0 In-Reply-To: <20150427164024.GD28871@pd.tnic> References: <5d120f358612d73fc909f5bfa47e7bd082db0af0.1429841474.git.luto@kernel.org> <20150425211206.GE32099@pd.tnic> <20150427085305.GB6774@pd.tnic> <20150427113506.GG6774@pd.tnic> <20150427154631.GB28871@pd.tnic> <20150427164024.GD28871@pd.tnic> Date: Mon, 27 Apr 2015 11:14:15 -0700 X-Google-Sender-Auth: 9E9PdsPUiDOvQbskdWvSOAzXUso Message-ID: Subject: Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue From: Linus Torvalds To: Borislav Petkov Cc: Andy Lutomirski , Andy Lutomirski , X86 ML , "H. Peter Anvin" , Denys Vlasenko , Brian Gerst , Denys Vlasenko , Ingo Molnar , Steven Rostedt , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 20 On Mon, Apr 27, 2015 at 9:40 AM, Borislav Petkov wrote: > > Either way, the NOPs-version is faster and I'm running the test with the > F16h-specific NOPs to see how they perform. Btw, please don't use the "more than three 66h overrides" version. Sure, that's what the optimization manual suggests if you want single-instruction decode for all sizes up to 15 bytes, but I think we're better off with the two-nop case for sizes 12-15) (4-byte nop followed by 8-11 byte nop). Because the "more than three 66b prefixes" really performs abysmally on some cores, iirc. Linus -- 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/