Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp301417ybb; Tue, 24 Mar 2020 23:13:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtvflDWDhziqorNk4TR6Toj5MP32MMSg4B0HtgPwtnqXg8tJkJwWmlxbkVt1BNA9+MO/AMO X-Received: by 2002:a4a:7555:: with SMTP id g21mr604791oof.46.1585116814855; Tue, 24 Mar 2020 23:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585116814; cv=none; d=google.com; s=arc-20160816; b=xewIPOLJwl5uVVIOXZ8DssykRMNV7AIjblPfEZVA5mAoAn2m/d+o/NMILIX06eWHk3 Y4GoMp3wg8tsdCFGwxGH/km9UHLN/I2qADWBD1Y6NRHgYpaerUhnNpgP34JpkNe5gYaY FOaBv1lgJHP9nQIVmag7H4JujRRhGQX4eQ7iAC7vCT0gRxsONoD8lfIVA3WDINNr3rlB DrHqLRvzV1cO8WagBj7u1LhQ+IxowRPszDSMGusFX/TvWouFjO6/YjI4j17zyLcAWVDv Lv1B20CGbK1vTe9oApDmWXNOORQO0n4dace+8Ja41HCeUESjYjgKK83v3LL1GMTOtVyg BScQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject:ironport-sdr :ironport-sdr; bh=iCPOpCKojzR9ggTRANT2SmHkz/N1ngT9jX4zd3Slpaw=; b=CeG34XqqAb2Jx46WrOKwJ90kgGCw8LKt6yRc+QemkVGlegCEwx9VvYKMc63QybUDt6 vZUe1assTnfAwyJgxSvsH5nExPx8waDEw3zvIcgoKeEE5EHSCcG0OD7gaMFrTnjnnTQQ YU1PNo5rcK4/9OATkyyegOFlEGP8zMMMXRZnZq4W1d9xtvILTBMfcYzSyORQCxquq4E/ zRXcU9N1DOa+/ls2N84IQFntM+0zBc3FHGgXs7RG51n8G5lDTVtKvoe81XjEzuZHUCdj 2PdqYgUVMfd6MyPqRN75A7Wes1Pj/A7xWGGYnD5fYFe2H887EAGvz7JXSr0vEmz9wmtI vXig== 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 z17si554623oth.282.2020.03.24.23.13.20; Tue, 24 Mar 2020 23:13:34 -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 S1726086AbgCYGLW (ORCPT + 99 others); Wed, 25 Mar 2020 02:11:22 -0400 Received: from mga09.intel.com ([134.134.136.24]:50568 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgCYGLW (ORCPT ); Wed, 25 Mar 2020 02:11:22 -0400 IronPort-SDR: uzJlxEzN9g9yNRszG0zAbdm9sPcDVkyJhO/czCdrOHUlb0EBwnqUJNB6HbM83hC6LUPf+Htk3G Z+iy/V3J4NJg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2020 23:11:21 -0700 IronPort-SDR: Ki5JpDid7RDImR7N+0d5vf2HPkKv2ebEyM/aljPblzyoS+RZ7Y5WtcrEY5kpimaL61M9gTZ8xD Ii1ybdc+QqGQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="420212956" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.87]) ([10.237.72.87]) by orsmga005.jf.intel.com with ESMTP; 24 Mar 2020 23:11:18 -0700 Subject: Re: [PATCH] x86: perf: insn: Tweak opcode map for Intel CET instructions From: Adrian Hunter To: Mingbo Zhang , x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Masami Hiramatsu , Arnaldo Carvalho de Melo , Andi Kleen , Josh Poimboeuf , linux-kernel@vger.kernel.org, Yu-cheng Yu , Jiri Olsa References: <20200303045033.6137-1-whensungoes@gmail.com> <931d8779-8b77-b75f-bb3a-ee2f9d75f149@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <06eec783-733c-c8e1-441b-2d25b897485c@intel.com> Date: Wed, 25 Mar 2020 08:10:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/20 9:10 am, Adrian Hunter wrote: > On 3/03/20 9:17 am, Adrian Hunter wrote: >> On 3/03/20 6:50 am, Mingbo Zhang wrote: >>> Intel CET instructions are not described in the Intel SDM. When trying to >>> get the instruction length, the following instructions get wrong (missing >>> ModR/M byte). >>> >>> RDSSPD r32 >>> RSDDPQ r64 >>> ENDBR32 >>> ENDBR64 >>> WRSSD r/m32, r32 >>> WRSSQ r/m64, r64 >>> >>> RDSSPD/Q and ENDBR32/64 use the same opcode (f3 0f 1e) slot, which is >>> described in SDM as Reserved-NOP with no encoding characters, and got an >>> empty slot in the opcode map. WRSSD/Q (0f 38 f6) also got an empty slot. >> >> We have patches for that: >> >> https://lore.kernel.org/lkml/20200204171425.28073-1-yu-cheng.yu@intel.com/ >> >> But they have not yet been applied. Arnaldo, could you take them? >> > > Any takers? > :-)