Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934814AbeAKQEr (ORCPT + 1 other); Thu, 11 Jan 2018 11:04:47 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:59115 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932361AbeAKQEq (ORCPT ); Thu, 11 Jan 2018 11:04:46 -0500 Date: Thu, 11 Jan 2018 17:04:21 +0100 (CET) From: Thomas Gleixner To: Tim Chen cc: Andy Lutomirski , Linus Torvalds , Greg KH , Dave Hansen , Andrea Arcangeli , Andi Kleen , Arjan Van De Ven , David Woodhouse , Peter Zijlstra , Dan Williams , Paolo Bonzini , Ashok Raj , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/5] x86/enter: Create macros to set/clear IBRS In-Reply-To: <3aab341725ee6a9aafd3141387453b45d788d61a.1515542293.git.tim.c.chen@linux.intel.com> Message-ID: References: <3aab341725ee6a9aafd3141387453b45d788d61a.1515542293.git.tim.c.chen@linux.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, 9 Jan 2018, Tim Chen wrote: > + > +.macro WRMSR_ASM msr_nr:req edx_val:req eax_val:req > + movl \msr_nr, %ecx > + movl \edx_val, %edx > + movl \eax_val, %eax > +.endm This is the most brilliant piece of useless code I've seen in a long time. tglx