From patchwork Tue Mar 7 02:39:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 65215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2209519wrd; Mon, 6 Mar 2023 19:06:58 -0800 (PST) X-Google-Smtp-Source: AK7set/inuTrlsU82wl5/i3AfFNIGMtuLn1YMgNJo3W09aa+Nn+6bG+oOJZ53i1rQoRL4SC1ePbq X-Received: by 2002:a05:6a20:6707:b0:cc:75b8:7cac with SMTP id q7-20020a056a20670700b000cc75b87cacmr12470692pzh.27.1678158417964; Mon, 06 Mar 2023 19:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678158417; cv=none; d=google.com; s=arc-20160816; b=BJ/d0lNMjQ+0nNoiyIBhwdUZ7n/GDhljLj4ZcCf4oEyu5W/fupxHT7TdN7dlqd0gpK +zBvSH3QBSUzY7VWlR5JL//NzFDfigNp/pAqelzFoFiEKqF4m3ykAA84RehCljUh3o6K /A2y9KipW9jWs1VyoP8SUtxpDx/7J9IKYsiGfI16Dv64hN6Ob/y83EhxCCKkLdztbn8s 2MF4ZdcMcYPIYfpiitDbbSYmK9FNu4I3kqS399cHlBrBISfcvUc2b4KEdxBiYqbrvOcO 3iBTmtfBLmT8Oy2S0YBfQYLQxcVpsRV74HuSv6HxO3EnJMPvhTD37OOF1fQd3wTU/YHk qryA== 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=OnPWU3zKvAFN5zCINdgJhSm8PRbtANkhAuSAcv2ya+Y=; b=AJxLhLEZbkI0egkoz321VdHJTwIoukGx4YZS82LJa4ytOoy49mbl+0uKv+cf5dxM3u VQVIHqYRy+tgi18WhIs8tYNW8ACzxi0h3eT9JgGLIHXdE7hrpJ8f0hz99NPnpHOtiXcA wjHr5fnoHkmve/VryK24mvc/i45fnzDspxfyYsZ4ForeBGf0xNb8PqCUd6ZN1yuMHmQ/ yvxd+Ys1N7VIv7nVHKHxmlIkis3ZVdVxanFY/TXKo9TsfnZsWBe7e3MuwWRuVqoknWRJ yJfOW7dLVC9Vw3NpF03CJDtCIeaaztE9b3VcVrSTnfFpNpqEbnowVG5UmJQxTD9d6vT4 Nwhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nCNfgLec; 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 u125-20020a627983000000b005e37ee6d9c1si11400712pfc.281.2023.03.06.19.06.45; Mon, 06 Mar 2023 19:06:57 -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=nCNfgLec; 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 S230042AbjCGDFs (ORCPT + 99 others); Mon, 6 Mar 2023 22:05:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbjCGDF1 (ORCPT ); Mon, 6 Mar 2023 22:05:27 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0DA7C9C7; Mon, 6 Mar 2023 19:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678158324; x=1709694324; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9JZohEEZ3OOYA+uz2zlIPReipLAVM4kv9u7LWFHKKew=; b=nCNfgLecKyfLTMQZWhRPdggkav5W2Akq3MZ/hY5rdEPG3MuhmX4jo1Ao YLhUz2ivUgZ6bjjSrkVcmmidrlGsYF2TpM0kwzwSMsC3QiWfWz+xPsZMw 2QXOFmZfBaJ6XkrGGHBwgZybGeQQlKOClVuFWqdebsenuG9JHPCAAzRCE Ngg3rHI+FlVKznqct19qGdLv9cO5HynqBoLfqreSTb2fCMebZ2IulHwho 7l2MXKCdeMH/dZhTYDiDm4SYyo7Da8D0WAX3IrdLOuLLapTqE5ATNTuDy Pi3dhgDPpCPAd5PyypS8d6HHjrNgxhnGb9wflf2pYKaHZeCZAD16NFDFK A==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="338072372" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="338072372" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 19:05:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="676409739" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="676409739" Received: from unknown (HELO fred..) ([172.25.112.68]) by orsmga002.jf.intel.com with ESMTP; 06 Mar 2023 19:05:12 -0800 From: Xin Li To: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, peterz@infradead.org, andrew.cooper3@citrix.com, seanjc@google.com, pbonzini@redhat.com, ravi.v.shankar@intel.com Subject: [PATCH v5 07/34] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Mon, 6 Mar 2023 18:39:19 -0800 Message-Id: <20230307023946.14516-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307023946.14516-1-xin3.li@intel.com> References: <20230307023946.14516-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,URIBL_BLOCKED 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?1759676641568702233?= X-GMAIL-MSGID: =?utf-8?q?1759676641568702233?= From: "H. Peter Anvin (Intel)" Add the instruction opcodes used by FRED: ERETU, ERETS. Opcode number is per public FRED draft spec v3.0. Signed-off-by: H. Peter Anvin (Intel) Tested-by: Shan Kang Signed-off-by: Xin Li --- arch/x86/lib/x86-opcode-map.txt | 2 +- tools/arch/x86/lib/x86-opcode-map.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/lib/x86-opcode-map.txt b/arch/x86/lib/x86-opcode-map.txt index 5168ee0360b2..7a269e269dc0 100644 --- a/arch/x86/lib/x86-opcode-map.txt +++ b/arch/x86/lib/x86-opcode-map.txt @@ -1052,7 +1052,7 @@ EndTable GrpTable: Grp7 0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) -1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) +1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) | ERETU (F3),(010),(11B) | ERETS (F2),(010),(11B) 2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B) 3: LIDT Ms 4: SMSW Mw/Rv diff --git a/tools/arch/x86/lib/x86-opcode-map.txt b/tools/arch/x86/lib/x86-opcode-map.txt index 5168ee0360b2..7a269e269dc0 100644 --- a/tools/arch/x86/lib/x86-opcode-map.txt +++ b/tools/arch/x86/lib/x86-opcode-map.txt @@ -1052,7 +1052,7 @@ EndTable GrpTable: Grp7 0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) -1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) +1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) | ERETU (F3),(010),(11B) | ERETS (F2),(010),(11B) 2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B) 3: LIDT Ms 4: SMSW Mw/Rv