From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH v5 0/9] x86: macrofying inline asm for better compilation Date: Wed, 20 Jun 2018 12:11:01 +0200 Message-ID: <20180620101101.GB2530@hirez.programming.kicks-ass.net> References: <20180619194854.69486-1-namit@vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180619194854.69486-1-namit@vmware.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Nadav Amit Cc: Juergen Gross , Kate Stewart , Kees Cook , Josh Poimboeuf , Philippe Ombredanne , Greg Kroah-Hartman , Christopher Li , x86@kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , virtualization@lists.linux-foundation.org, Masahiro Yamada , linux-sparse@vger.kernel.org, Ingo Molnar , Jan Beulich , "H. Peter Anvin" , Alok Kataria , Sam Ravnborg , Thomas Gleixner List-Id: virtualization@lists.linuxfoundation.org On Tue, Jun 19, 2018 at 12:48:45PM -0700, Nadav Amit wrote: > Nadav Amit (9): > Makefile: Prepare for using macros for inline asm > x86: objtool: use asm macro for better compiler decisions > x86: refcount: prevent gcc distortions > x86: alternatives: macrofy locks for better inlining > x86: bug: prevent gcc distortions > x86: prevent inline distortion by paravirt ops > x86: extable: use macros instead of inline assembly > x86: cpufeature: use macros instead of inline assembly > x86: jump-labels: use macros instead of inline assembly > > Makefile | 9 ++- > arch/x86/Makefile | 11 ++- > arch/x86/include/asm/alternative-asm.h | 20 ++++-- > arch/x86/include/asm/alternative.h | 11 +-- > arch/x86/include/asm/asm.h | 61 +++++++--------- > arch/x86/include/asm/bug.h | 98 +++++++++++++++----------- > arch/x86/include/asm/cpufeature.h | 82 ++++++++++++--------- > arch/x86/include/asm/jump_label.h | 65 ++++++++++------- > arch/x86/include/asm/paravirt_types.h | 56 +++++++-------- > arch/x86/include/asm/refcount.h | 74 +++++++++++-------- > arch/x86/kernel/macros.S | 16 +++++ > include/asm-generic/bug.h | 8 +-- > include/linux/compiler.h | 56 +++++++++++---- > scripts/Kbuild.include | 4 +- > scripts/mod/Makefile | 2 + > 15 files changed, 340 insertions(+), 233 deletions(-) > create mode 100644 arch/x86/kernel/macros.S Aside from the one niggle: Acked-by: Peter Zijlstra (Intel)