From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760344AbdADBcB (ORCPT ); Tue, 3 Jan 2017 20:32:01 -0500 Received: from mga11.intel.com ([192.55.52.93]:11621 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753093AbdADBbx (ORCPT ); Tue, 3 Jan 2017 20:31:53 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,457,1477983600"; d="scan'208";a="45493578" Message-ID: <1483493511.106950.107.camel@ranerica-desktop> Subject: Re: [v2 3/7] x86/mpx, x86/insn: Relocate insn util functions to a new insn-utils From: Ricardo Neri To: Dave Hansen Cc: Ingo Molnar , Thomas Gleixner , Borislav Petkov , Andy Lutomirski , Peter Zijlstra , linux-kernel@vger.kernel.org, x86@kernel.org, linux-msdos@vger.kernel.org, wine-devel@winehq.org, Adam Buchbinder , Colin Ian King , Lorenzo Stoakes , Qiaowei Ren , Arnaldo Carvalho de Melo , Masami Hiramatsu , Adrian Hunter , Kees Cook , Thomas Garnier , Dmitry Vyukov , "Ravi V . Shankar" Date: Tue, 03 Jan 2017 17:31:51 -0800 In-Reply-To: References: <20161224013745.108716-1-ricardo.neri-calderon@linux.intel.com> <20161224013745.108716-4-ricardo.neri-calderon@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2017-01-03 at 08:44 -0800, Dave Hansen wrote: > On 12/23/2016 05:37 PM, Ricardo Neri wrote: > > Other kernel submodules can benefit from using the utility functions > > defined in mpx.c to obtain the addresses and values of operands contained > > in the general purpose registers. An instance of this is the emulation code > > used for instructions protected by the Intel User-Mode Instruction > > Prevention feature. > > I haven't looked at this in detail, but as long as this is pretty much a > straight code move, I don't see any issues with it from an MPX > perspective. I'm glad to see it getting reused. Yes, this is only a relocation of code. > > Feel free to add my Acked-by on it if you like. Great! Thanks! Ricardo