From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753493AbaEDCOk (ORCPT ); Sat, 3 May 2014 22:14:40 -0400 Received: from terminus.zytor.com ([198.137.202.10]:35435 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753390AbaEDCOj (ORCPT ); Sat, 3 May 2014 22:14:39 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <6cfe29821979c42cd812878e05577f69f99fafaf.1399074748.git.luto@amacapital.net> <53646A7E.8010400@zytor.com> <20140503072428.54f89688@gandalf.local.home> <53656B7A.8050606@zytor.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH v2] x86: Return to kernel without IRET From: "H. Peter Anvin" Date: Sat, 03 May 2014 19:14:07 -0700 To: Andy Lutomirski CC: Steven Rostedt , Linus Torvalds , Thomas Gleixner , Linux Kernel Mailing List , X86 ML , Gleb Natapov , Paolo Bonzini Message-ID: <82c35a60-0c7e-4e17-896e-8094d10df689@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not for return from NMIs themselves, to be sure On May 3, 2014 4:51:37 PM PDT, Andy Lutomirski wrote: >On Sat, May 3, 2014 at 3:19 PM, H. Peter Anvin wrote: >> On 05/03/2014 04:24 AM, Steven Rostedt wrote: >>> On Fri, 02 May 2014 21:03:10 -0700 >>> "H. Peter Anvin" wrote: >>> >>>> >>>> I'd really like to see a workload which would genuinely benefit >before >>>> adding more complexity. Now... if we can determine that it doesn't >harm >>>> anything and would solve the NMI nesting problem cleaner than the >>>> current solution, that would justify things, too... >>>> >>> >>> As I stated before. It doesn't solve the NMI nesting problem. It >only >>> handles page faults. We would have to implement this for breakpoint >>> return paths too. Is that a plan as well? >>> >> >> I would assume we would do it for *ALL* the IRETs. There are only >three >> IRETs in the kernel last I checked... > >I think we should carefully avoid doing it for returns from NMI, though >:) > >If you want a realistic benchmark that will speed up, packet >forwarding might be a good place to look. > >--Andy -- Sent from my mobile phone. Please pardon brevity and lack of formatting.