Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753358AbbG1PX3 (ORCPT ); Tue, 28 Jul 2015 11:23:29 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:34162 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbbG1PXZ (ORCPT ); Tue, 28 Jul 2015 11:23:25 -0400 MIME-Version: 1.0 In-Reply-To: <9bf0871b9910ec93b9c2876194fbb8b6b45ae48a.1438093915.git.jpoimboe@redhat.com> References: <9bf0871b9910ec93b9c2876194fbb8b6b45ae48a.1438093915.git.jpoimboe@redhat.com> From: Andy Lutomirski Date: Tue, 28 Jul 2015 08:23:04 -0700 Message-ID: Subject: Re: [PATCH v8 09/21] x86/paravirt: Align paravirt thunk functions at 16-byte boundaries To: Josh Poimboeuf Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Michal Marek , Peter Zijlstra , Andy Lutomirski , Borislav Petkov , Linus Torvalds , Andi Kleen , Pedro Alves , Namhyung Kim , Bernd Petrovitsch , X86 ML , live-patching@vger.kernel.org, "linux-kernel@vger.kernel.org" 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: 690 Lines: 16 On Tue, Jul 28, 2015 at 7:47 AM, Josh Poimboeuf wrote: > Paravirt thunk functions aren't aligned, which can impact performance > and is inconsistent with gcc-generated functions. > > Align them at 16-byte boundaries to be consistent with gcc functions. IMO stackvalidate shouldn't warn about this. We've discussed dropping the alignment requirement entirely, since it seems to have little benefit on modern CPUs. --Andy -- 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/