From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org by pdx-caf-mail.web.codeaurora.org (Dovecot) with LMTP id zT5zGbh2GVuyGQAAmS7hNA ; Thu, 07 Jun 2018 18:42:18 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2FBFC6074D; Thu, 7 Jun 2018 18:42:18 +0000 (UTC) Authentication-Results: smtp.codeaurora.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="g6CrDUvF" X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by smtp.codeaurora.org (Postfix) with ESMTP id BE6C6601C3; Thu, 7 Jun 2018 18:42:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BE6C6601C3 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935137AbeFGSmQ (ORCPT + 25 others); Thu, 7 Jun 2018 14:42:16 -0400 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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tqO+u91eIAN7O0P+p3RNq5RoYe1I0GwQgXsBlPtmveA=; b=g6CrDUvFfhZ/VuXlixaVxnEAC eyVDuQ80xpnTKFhHjJh4KS/RkzD7lT0p0ZQ+P1YwXdFLOTOhxwSGz7OSAUCEPUB6iFfvD5OAYAOAC L8B8mLqTV6mba8ZusOwC3/UrdbDT2gCfm5RwkGfadIYxPGeWT4IOhiG96qfiosy49ATLPzQ0ROyDe NjmkZKG9qrDulSk42RkfKy8VapOrH5VYaANwlRMH/R/NZrNmXcZ8eTRccWHXpiPbXWsgDHCbNKJUD FncVAPXXEyGuh1uWQigp4NuYH38guMyzliuLwM4QDoBkxjiHGv9xIENMYuu7Evdtekl/emiWC6WAz iJHDqx0cw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQzqz-0002KT-2f; Thu, 07 Jun 2018 18:41:45 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5A71D201EA7A5; Thu, 7 Jun 2018 20:41:42 +0200 (CEST) Date: Thu, 7 Jun 2018 20:41:42 +0200 From: Peter Zijlstra 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 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: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.