Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751856AbbFKGIU (ORCPT ); Thu, 11 Jun 2015 02:08:20 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:38279 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbbFKGIN (ORCPT ); Thu, 11 Jun 2015 02:08:13 -0400 Date: Thu, 11 Jun 2015 08:08:07 +0200 From: Ingo Molnar To: Josh Poimboeuf Cc: Andy Lutomirski , Michal Marek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "linux-kernel@vger.kernel.org" , Andi Kleen , live-patching@vger.kernel.org, X86 ML , "H. Peter Anvin" , Linus Torvalds , Peter Zijlstra Subject: Re: [PATCH v5 02/10] x86: Compile-time asm code validation Message-ID: <20150611060807.GA30720@gmail.com> References: <20150610175320.GD29724@treble.redhat.com> <20150610185845.GA1125@treble.redhat.com> <20150610221716.GF1125@treble.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150610221716.GF1125@treble.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 955 Lines: 30 * Josh Poimboeuf wrote: > I should also mention that my proposed ia32_ptregs_common patch, which > duplicated the needed code, was more optimized for performance than code size. > > But if you're more worried about code size, we could turn ia32_ptregs_common > into a proper callable function, and then replace > > jmp ia32_ptregs_common > > with: > > call ia32_ptregs_common > ret > > So it becomes a regular call instead of a tail call. It only adds a few > instructions and the function is self-contained. Would that be good enough? No, debug info should not slow down the kernel, especially not code we write in assembly partly for performance. Thanks, Ingo -- 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/