From patchwork Mon Nov 28 16:40:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 26879 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5819931wrr; Mon, 28 Nov 2022 09:13:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/H6AFyc8WyDPMpxW4lTLsuGkeOPmq++IG5A9CDbNkSKEHyf7yHU5qM4/2Mh4+7v8gAz5v X-Received: by 2002:a17:906:9250:b0:7bb:7520:c527 with SMTP id c16-20020a170906925000b007bb7520c527mr19224768ejx.347.1669655591700; Mon, 28 Nov 2022 09:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669655591; cv=none; d=google.com; s=arc-20160816; b=hl2D+BC3ssTeF5aPAJJ5vI3mRpTKchOwsw8ixrTUuKt/K16IgaFKl8ufXzGq4iZP4p ZUmS358Qs0Dg3D5AseVEYMlHAsdj93SEKsHKd4UQPjYcUrA6RPeR4vUOQSM43ebs6fyW YWV9xDpd5wbaJaocCNHstFENk1bJm6gE0515Wg7GKRlCdbXWGxfMf3WLDcUVJrn51o8O cBBPRQb3nTs40rjnEOE1SEC7xofl6JwvlZfZJWpIyG0orqNLmmfcFuDJas6c2uN4IfLf b+Zns7Nbke2TMjeQfGCp55PcGk2L7BXAedBusCp/1oeMaUI9t7t4b5mNFNROUBS6nNTb dlxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+3L/zBhMiW903xYBCmWze24Rs8tywihmXNz1C+Zm5Es=; b=GZCfkwEXIAz8WD9DNnddIe0k8HAK0ib+PANVRHjSfaWwdWfnmeIVwWfINI5sh9d5Kn o0fB3xMWfj90aGIBkCgY5l63AoOIh/DAVOdF8FgZQyVBTfUw0gnaBvZbIWUHAx5xodmu zrrrjscd3GumDNdEl+9ZFOpQvBPKXJ9+QDF8cpEmV2MxrUnvQ1q6QlO8ePJ/WfOoNjin mw8Z/k1KotJON7BcoOl/V25ZjN8bM9aaWupUZ9UqOAagx6QT6GuPonzlmJLrxHhLTQ3p PWyjGZBvr8Ra0RzoBa/rmlVfVrzt+lDrpQ9dLvKPNxr8jeA6uk5f8cmEmHVrfdYLufic Ytag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M3nYsWdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz10-20020a170906fe4a00b007bf5128a8ecsi3625874ejb.466.2022.11.28.09.12.44; Mon, 28 Nov 2022 09:13:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M3nYsWdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232837AbiK1RFM (ORCPT + 99 others); Mon, 28 Nov 2022 12:05:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232763AbiK1REb (ORCPT ); Mon, 28 Nov 2022 12:04:31 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6216F39 for ; Mon, 28 Nov 2022 09:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669655061; x=1701191061; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LPkLGLb6ct3NaqkfE/fcmAkN388PX6Fn1d7MFn2Rg6I=; b=M3nYsWdFKvn1CF8W3WaKyyOH221qbuMG9QPna0uQuDcvp4rwmIqI+TBh kVDk4nRCnXbCgHEO99sRXGt9tmX2y6eYExMgvab4fBShTJ8ncpziVW5j4 lreT2Z7YALlQzyEv3rA2UkUqlUB0mxqGtiPGDPikGcic3BpU+iDW5SWLT oiHInsAE5v2X2mQrA8Zuk5NyQmVGTmNzwTfLkkFmug8arpm9FDWtJcAii uY9ao5Em8BLdWw7ZL+ifDK9PbGK/X/DYsdr7mjhbaoDYhAUJrziT+eKj3 8RtwH0yRNZjc//5LgxQSFkQME5YSssOXduZ6I6UZT/aKRSj/UqzyQCHwa w==; X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="313591631" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="313591631" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2022 09:04:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="706864624" X-IronPort-AV: E=Sophos;i="5.96,200,1665471600"; d="scan'208";a="706864624" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga008.fm.intel.com with ESMTP; 28 Nov 2022 09:04:20 -0800 From: Xin Li To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, peterz@infradead.org, brgerst@gmail.com, chang.seok.bae@intel.com, jgross@suse.com Subject: [PATCH v5 2/5] x86/opcode: add the LKGS instruction to x86-opcode-map Date: Mon, 28 Nov 2022 08:40:25 -0800 Message-Id: <20221128164028.4570-3-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221128164028.4570-1-xin3.li@intel.com> References: <20221128164028.4570-1-xin3.li@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750760781809703833?= X-GMAIL-MSGID: =?utf-8?q?1750760781809703833?= From: "H. Peter Anvin (Intel)" Add the instruction opcode used by LKGS. Opcode number is per public FRED draft spec v3.0 https://cdrdv2.intel.com/v1/dl/getContent/678938. Signed-off-by: H. Peter Anvin (Intel) Signed-off-by: Xin Li --- arch/x86/lib/x86-opcode-map.txt | 1 + tools/arch/x86/lib/x86-opcode-map.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/lib/x86-opcode-map.txt b/arch/x86/lib/x86-opcode-map.txt index d12d1358f96d..5168ee0360b2 100644 --- a/arch/x86/lib/x86-opcode-map.txt +++ b/arch/x86/lib/x86-opcode-map.txt @@ -1047,6 +1047,7 @@ GrpTable: Grp6 3: LTR Ew 4: VERR Ew 5: VERW Ew +6: LKGS Ew (F2) EndTable GrpTable: Grp7 diff --git a/tools/arch/x86/lib/x86-opcode-map.txt b/tools/arch/x86/lib/x86-opcode-map.txt index d12d1358f96d..5168ee0360b2 100644 --- a/tools/arch/x86/lib/x86-opcode-map.txt +++ b/tools/arch/x86/lib/x86-opcode-map.txt @@ -1047,6 +1047,7 @@ GrpTable: Grp6 3: LTR Ew 4: VERR Ew 5: VERW Ew +6: LKGS Ew (F2) EndTable GrpTable: Grp7