From patchwork Thu Jan 12 07:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 42276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3748700wrt; Wed, 11 Jan 2023 23:47:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXvsKC43oJLJRpVJC/vExjXVcIOsFHSGjyGwOk7VQr6LOk6ehSorPC0hHWGkVZWawTNo27uP X-Received: by 2002:a17:906:2a49:b0:812:d53e:11f6 with SMTP id k9-20020a1709062a4900b00812d53e11f6mr62065523eje.70.1673509670413; Wed, 11 Jan 2023 23:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673509670; cv=none; d=google.com; s=arc-20160816; b=QrxnPVTD4AoWdZm9jnhdf/NY5yIFU34f6Fw4rjwWWrIU085kIA2LCsOugDIvHAGKjD YiSJr3+lk9UOIr+i0a0rqicfzaOMsOZSeCxFfBOdkKQJBeSe4P0zLwKQXtatEZR+UTw9 L7Z5uOpkL1oyPMa37j8kvl9NSk3IH87vKLmZs7BuVJy4pNwKCqeulI/4j/oO8MUSJOqG /kFvBWVZ0nnNmzvKH2SLsK0JWId1A39ECbuK1K6i39m0rbPqV3s8BBNEdwtcrHDNMX1v 0D2TEom9C31M5jTCq/6ERYjQRQQwJ0BU4ECAxyxXa4GSLV8AtJRNU+1W67zgggGR8NO/ WeMA== 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=eJsKmgq7cZ4PvvkyHtyDuB9Yk24qiDeyA141LpQLnUo=; b=HuZkC9Iq9MuTz5bRE2P/nf8n4qbowODH72k2A+xjbgeeJGo58RfSW+YMEANany3FCt kJzaocaWQJMPSp49t3+Ao+dgN47TMnzllUpRQ+JiqJOTpxfu5mgHKYOH/vcoq0IVPEAS AS0d4KPxwm5vhf8vSxlQr+f7Lipwld1mcL57+bEb5zUUMhdUYHzBQf6DLzcaT2402sOB jyVXj/hSJOYPUsFX36FGKbuzHoZXcR/ktj3GuJ6ZwWFG99/e+RSc1r23l6ou5dWD0L15 TBeheta8Klvh6Dl7HKENqPmLW0IJlSSwaLf6M1W6TXrOc8RtgBdDRtLcvAMwG1uf/OCU pGSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nPwNZO0C; 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 ne19-20020a1709077b9300b007bf9de4fe91si20106231ejc.53.2023.01.11.23.47.25; Wed, 11 Jan 2023 23:47:50 -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=nPwNZO0C; 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 S238924AbjALHo1 (ORCPT + 99 others); Thu, 12 Jan 2023 02:44:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236439AbjALHoX (ORCPT ); Thu, 12 Jan 2023 02:44:23 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918FE3F45B for ; Wed, 11 Jan 2023 23:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673509462; x=1705045462; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=P0KUesOjPVwhCKCjpSh6maB25ZidpqBOIbFNjG57JZ8=; b=nPwNZO0CVNFbOZ2YbLJF1ED6Nr49MVcdPIuubFq6V6nZeFLdyoH259is s+vJxIxBH0oTLKXR4qCrYgbOkcBiLOofGE4MB8amvPDhg0setWdry2PPj sFkRUIzT0xjNb+JDTVpwAqHWuI5yf5UnQ4kWS5a4S4BctOYo4XKxRFkh5 qaGIzSqfiLYFcvEUw97cL2pWnjmKRoXSOCdE7+tii0XIw+NZSUs4/NlIs NKIOi/1elYcoUy07hwOLftr9XaQRuW1bDhGRDEMlWGtGJYfgd5jsdbg08 2wVSmtg3hhfzdLoz3IJ2TaS2Lm+ZP+y2rgYgbj+hekJYo+lvzD2Kuk07O g==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="321328685" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="321328685" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 23:44:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="635283926" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="635283926" Received: from unknown (HELO fred..) ([172.25.112.68]) by orsmga006.jf.intel.com with ESMTP; 11 Jan 2023 23:44:21 -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 v6 2/5] x86/opcode: add the LKGS instruction to x86-opcode-map Date: Wed, 11 Jan 2023 23:20:29 -0800 Message-Id: <20230112072032.35626-3-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230112072032.35626-1-xin3.li@intel.com> References: <20230112072032.35626-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?1754802075683938887?= X-GMAIL-MSGID: =?utf-8?q?1754802075683938887?= From: "H. Peter Anvin (Intel)" Add the instruction opcode used by LKGS to x86-opcode-map. Opcode number is per public FRED draft spec v3.0. 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