From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH 02/10] x86/cet: Introduce WRUSS instruction Date: Thu, 7 Jun 2018 20:41:42 +0200 Message-ID: <20180607184142.GJ12217@hirez.programming.kicks-ass.net> References: <20180607143807.3611-1-yu-cheng.yu@intel.com> <20180607143807.3611-3-yu-cheng.yu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Andy Lutomirski Cc: Yu-cheng Yu , LKML , linux-doc@vger.kernel.org, Linux-MM , linux-arch , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "H. J. Lu" , "Shanbhogue, Vedvyas" , "Ravi V. Shankar" , Dave Hansen , Jonathan Corbet , Oleg Nesterov , Arnd Bergmann , mike.kravetz@oracle.com List-Id: linux-arch.vger.kernel.org On Thu, Jun 07, 2018 at 09:40:02AM -0700, Andy Lutomirski wrote: > Peterz, isn't there some fancy better way we're supposed to handle the > error return these days? Don't think so. I played with a few things but that never really went anywhere. Also, both asm things look suspicously similar, it might make sense to share. Also, maybe do the instruction .byte sequence in a #define INSN or something. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from merlin.infradead.org ([205.233.59.134]:57142 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933108AbeFGSmO (ORCPT ); Thu, 7 Jun 2018 14:42:14 -0400 Date: Thu, 7 Jun 2018 20:41:42 +0200 From: Peter Zijlstra Subject: Re: [PATCH 02/10] x86/cet: Introduce WRUSS instruction Message-ID: <20180607184142.GJ12217@hirez.programming.kicks-ass.net> References: <20180607143807.3611-1-yu-cheng.yu@intel.com> <20180607143807.3611-3-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Andy Lutomirski Cc: Yu-cheng Yu , LKML , linux-doc@vger.kernel.org, Linux-MM , linux-arch , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "H. J. Lu" , "Shanbhogue, Vedvyas" , "Ravi V. Shankar" , Dave Hansen , Jonathan Corbet , Oleg Nesterov , Arnd Bergmann , mike.kravetz@oracle.com Message-ID: <20180607184142.hmcoCTRFmdu95tqDzdCJpAr8G2pEkQqoHR-lWggCsrA@z> On Thu, Jun 07, 2018 at 09:40:02AM -0700, Andy Lutomirski wrote: > Peterz, isn't there some fancy better way we're supposed to handle the > error return these days? Don't think so. I played with a few things but that never really went anywhere. Also, both asm things look suspicously similar, it might make sense to share. Also, maybe do the instruction .byte sequence in a #define INSN or something.