From patchwork Wed Oct 19 10:23:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 5235 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp266901wrs; Wed, 19 Oct 2022 04:25:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5corrL/4gN4m/t90SyMdgFt/3izQqci0MHUIjBY+/NeO5uUJ6NFAPZu10U53ACG1Z8aFRO X-Received: by 2002:a17:90a:d914:b0:20a:a3e7:616f with SMTP id c20-20020a17090ad91400b0020aa3e7616fmr9314572pjv.108.1666178755190; Wed, 19 Oct 2022 04:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178755; cv=none; d=google.com; s=arc-20160816; b=dKtx2wFPcTfnQAxsfCFqV/p5XxQXctgwl1EWWVfz2/lqM0krQvRNzZjULRhk8Pu7fp o88FX6hHauZx97rS580bjQXdzm22i77lZapztQ0ZIB1Erj6AQqdyEhJN+z9p9q8WhjEU smbcbkkGFcentFhkuHOdQYeRF+zyEfUIUm65TUTccw+Pqs1yfAruLfXvH1aCEz61XRqO J0U0a5aatf69bPF+LXZvKdPKDxleHOKImJc3ohy/kQ+lWe4AyJc90W+gK71Ubdcp629D vMROjps7n28lAkcX3lL5isSXeCcXzxR7xUOqeenarLmLeEEhCLvPfuh/ZwvN6EKmFiEG FA7Q== 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=DzegdFaOalhFU+n0uHc7eM4fpBXth1FUL36616YwfPW80oZgfHtY77NMkIgcCGni4k yeAG+yE9Q4v65bUWBuJIFNF+cU0fkwb8CEam3yxUZiPJE/0mGT+rvEL+0AGbTkrnm5hf MY/1FT8yTbXUb0w6WGrzaXc96ryR6zYhMxgmZm7882+tmnYXqX7ZYFg9br/OZbHYKzbf HZa36RMJ5tfhJxmkFdHVgB5sN0R6AenLROfaux/5o+axRc1BcuJbFvqHRtUjef45ssyY oSYnEY2j5c6SwLRMNjtoDcVCSitgGpJzlLYT8aCcJalQ8Rj/L98idn0Vr/u+KPW+fMjB 0koQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MeEXRtd+; 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 k1-20020a628401000000b005662e18c93asi16358503pfd.135.2022.10.19.04.25.41; Wed, 19 Oct 2022 04:25:55 -0700 (PDT) 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=MeEXRtd+; 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 S231851AbiJSLVD (ORCPT + 99 others); Wed, 19 Oct 2022 07:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbiJSLSt (ORCPT ); Wed, 19 Oct 2022 07:18:49 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FFE21911DA for ; Wed, 19 Oct 2022 03:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666176513; x=1697712513; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LPkLGLb6ct3NaqkfE/fcmAkN388PX6Fn1d7MFn2Rg6I=; b=MeEXRtd+95mZZX8hoibQb6DRtXm8kVWqPHamdZ2MP5fJWVqgNq6f9etU 6Ij7l/vt3shyKCQas0qkJ/AHPEfWFy3mseUxPUlDxaypoHxHv9ebA56tz EweVhlrO4crzopXDN3pIXchkfc2tzepc2U686dNENKgbo8Y34vpAgSn4u GSGl32wY816qsgOX3WyWNmQXh/E7gYhAk5fKIoneA5Gt/pKX5SBesS6G0 qoXXWaJpVkLUKETBo8lMCQqNsrBPxTcw6CER3aL10n2e11uhIpaolCKd8 WWFZv3yabr7hsyokNPrfMXP1rH5i42hLH4Ww0XR/TAWHhwcSGLlRng2SJ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="293770254" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208";a="293770254" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 03:46:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="804242244" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208";a="804242244" Received: from unknown (HELO fred..) ([172.25.112.68]) by orsmga005.jf.intel.com with ESMTP; 19 Oct 2022 03:46:20 -0700 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 Subject: [PATCH v4 2/5] x86/opcode: add the LKGS instruction to x86-opcode-map Date: Wed, 19 Oct 2022 03:23:07 -0700 Message-Id: <20221019102310.1543-3-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221019102310.1543-1-xin3.li@intel.com> References: <20221019102310.1543-1-xin3.li@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?1747115054356056462?= X-GMAIL-MSGID: =?utf-8?q?1747115054356056462?= 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