Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp761724imm; Wed, 11 Jul 2018 10:29:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIhhs5ocg+cvkTFSa2YRNJBnVeC9deBx9YTeSV+1E3p7Gk9U2B8CTteCQNc55VXTJ9gcl9 X-Received: by 2002:a17:902:8f82:: with SMTP id z2-v6mr29597328plo.203.1531330161746; Wed, 11 Jul 2018 10:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531330161; cv=none; d=google.com; s=arc-20160816; b=VLgVSUD4hN3JU0AU71LFMG0Oz3Dus+zaFiK5OkXLYPc0b7Ev1oRnbrvpUUbSnL9VIQ sYNuNnT+v4ubxXDeVXB5z77jCutkvzn8OnqjgE9TOD+LpAlvo3M41uo445cSDUUfZHvW hQo4xqC6LWVbC5OMhvW+kLqja5EXA7beVdG1W10he83KLNeFCHivf2d5rRfMHg8+IRh4 UyrCv+CuA6uJKmk1KYezVvmU/aeU2748pIByx6p/bSKvugw+cepE4OAPBt57NcCvECVH C0Y8z7nnMZ7jfjLvDOQju1NSH6/0RXaKZtgBYFRzpkSi70I/aQKRXNYYhdm5rckrND6P 7txQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=MV850gL5jV4eEJwd4xAA03808YmemiKvyE/sxiym0yg=; b=Icfpw7RYy4cdq87I0Hbub+0Q66HKqUX7Ft9nhV8K5Gm6tBlSIWVWUy998jp1c5PiYJ slkI6StBZPDuDnZZVIr0pzt+f9VHLDYsdX5tkhFRY9vlzFg5V+DN+Fw1Utx+rP1vka9s ZUifpML++9nQMcKD/iYrA8i/kVEtiNndht6VDUwSNzKoOZ/NVV0tMoXmDvmFEvwQkBd8 eT5LS/Z07jz+VueiNG3z7WD5sHA/lmpnIOUDeTafYEZCtRs2PzH34RUstwuVMF6ZeKmD Ht6BdtqspyPjKoiJLwDpc91wTmRorxb9SFWSWhi9DQEtVzWr+5pUh02fTUSHpZ7JExPw PvHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si20135230plt.342.2018.07.11.10.29.06; Wed, 11 Jul 2018 10:29:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732951AbeGKPGh (ORCPT + 99 others); Wed, 11 Jul 2018 11:06:37 -0400 Received: from mga06.intel.com ([134.134.136.31]:42568 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbeGKPGh (ORCPT ); Wed, 11 Jul 2018 11:06:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 08:01:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,338,1526367600"; d="scan'208";a="53602529" Received: from 2b52.sc.intel.com ([143.183.136.52]) by fmsmga007.fm.intel.com with ESMTP; 11 Jul 2018 08:01:46 -0700 Message-ID: <1531321089.13297.4.camel@intel.com> Subject: Re: [RFC PATCH v2 18/27] x86/cet/shstk: Introduce WRUSS instruction From: Yu-cheng Yu To: Peter Zijlstra Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , "Ravi V. Shankar" , Vedvyas Shanbhogue Date: Wed, 11 Jul 2018 07:58:09 -0700 In-Reply-To: <20180711094549.GA2476@hirez.programming.kicks-ass.net> References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-19-yu-cheng.yu@intel.com> <20180711094549.GA2476@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-11 at 11:45 +0200, Peter Zijlstra wrote: > On Tue, Jul 10, 2018 at 03:26:30PM -0700, Yu-cheng Yu wrote: > > > > diff --git a/arch/x86/lib/x86-opcode-map.txt b/arch/x86/lib/x86- > > opcode-map.txt > > index e0b85930dd77..72bb7c48a7df 100644 > > --- a/arch/x86/lib/x86-opcode-map.txt > > +++ b/arch/x86/lib/x86-opcode-map.txt > > @@ -789,7 +789,7 @@ f0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 > > Gd,Eb (F2) | CRC32 Gd,Eb (66&F2) > >  f1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2) | CRC32 > > Gd,Ew (66&F2) > >  f2: ANDN Gy,By,Ey (v) > >  f3: Grp17 (1A) > > -f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey > > (F2),(v) > > +f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey > > (F2),(v) | WRUSS Pq,Qq (66),REX.W > >  f6: ADCX Gy,Ey (66) | ADOX Gy,Ey (F3) | MULX By,Gy,rDX,Ey (F2),(v) > >  f7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By > > (F3),(v) | SHRX Gy,Ey,By (F2),(v) > >  EndTable > Where are all the other instructions? ISTR that documentation patch > listing a whole bunch of new instructions, not just wuss. Currently we only use WRUSS in the kernel code.  Do we want to add all instructions here? Yu-cheng