From patchwork Tue Apr 4 10:26:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 79016 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2951478vqo; Tue, 4 Apr 2023 04:31:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Y++99UPjRYDpT05IGgmYXQTXMRzNKSguSLJQC/YVcyoycgvjGG6G3f8PUoZv8QjG74ReMO X-Received: by 2002:a17:906:9513:b0:947:3d04:61dc with SMTP id u19-20020a170906951300b009473d0461dcmr2046155ejx.77.1680607894371; Tue, 04 Apr 2023 04:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680607894; cv=none; d=google.com; s=arc-20160816; b=x+AAtl8tPPgqtZwZBU5fqZ4A+2RlyTwhi5NmPzfhQ2msf+SXdIyzIcCZeFWJMLVBvB kdEWEM/bm30WjWn1ljTrRzvwARPZAmBRe41jYLgrFvv9Y5fJYRGmQRtH2ERmgQVjdWZy WgwQjZJLBsw98Te0NT4khqvdX6yXssqg70NHiyb5R/zMh8FNXb+4fqF7HilgLPjPM17K OhCeaT8Qa9CZIEhFHxh1PN0aO3MNQIJizf94Q1gi0hvjlhStUxd7QDjXhwYAR9jnOGTL GDZb2B4FSqZcZ/hbxw0BDEj7NDVcPEJ6m4NjZTQi1f17VtIrmoS5GMMGUDvA7wqrSE6Y FcYg== 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=uh4Cgpifir+XOrrxbBtFJeJgG3jMujKR/NY6rd29o1bdEEgKb+lvX2VXtp/TfJ3b1D mAKMVVCYbnlwRSFP62ynGPdbzNiivLMNaS0YC3IkZ5pXfK2rHpLqwJsTPOn4KTSfSGab 8ttNLFzQHRSz/Bw30zKCrMPgH+jf/EXEZJvPW6J3M4WPQ3A6IqSC3OVZm9yIjiLEJnxj gzbz62Dbj5MOeFwhvZgoEB/hBG+19AI0Gfv4tmdXgt6zf6a6nWspipIk+ZXu41pPZsvl BGAjpSYNLuvbs3nZYQwT/o5pXbVmkHv5aR3VzITcQxXKNoClbLouUPMUu9jppri6vdSb puyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EYD1Pjnd; 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 ia15-20020a170907a06f00b00933574cbb3esi4656682ejc.229.2023.04.04.04.31.08; Tue, 04 Apr 2023 04:31:34 -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=EYD1Pjnd; 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 S234750AbjDDKyY (ORCPT + 99 others); Tue, 4 Apr 2023 06:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234541AbjDDKx2 (ORCPT ); Tue, 4 Apr 2023 06:53:28 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE7C40F7; Tue, 4 Apr 2023 03:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680605588; x=1712141588; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9JZohEEZ3OOYA+uz2zlIPReipLAVM4kv9u7LWFHKKew=; b=EYD1PjndKKdqOeQH3rPdA/gCLe6LsJ+vvHXsphlfvK4NuGBIwrtR9WGX NnxEkVQoWhewaF/f1+Np61CW7IovFa7NhOUUrwVLSK6ePstuxnzbk7TNQ IAHoluyP+LUD7DtUp5YcIWlM4EhOXpMjMWAbFRwDictL43fFYkmG8C8zf PLH29rhVU4jOcn3ajOB4K0Nefjwa/pECGGATUijW4NrteYhxwFuS1yLBI sIKTS8UDKu2UakG1FAMkmgS/CjgFHw7kyDJWVoX2urlVGZkr8t/0c3Daf MhJ2IXJJoOWzyPPtxcvbIcNUDYMH1xm4tMNbmBhfCagr8Ye48OluAQaxp w==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="330733991" X-IronPort-AV: E=Sophos;i="5.98,317,1673942400"; d="scan'208";a="330733991" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 03:53:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="775597798" X-IronPort-AV: E=Sophos;i="5.98,317,1673942400"; d="scan'208";a="775597798" Received: from unknown (HELO fred..) ([172.25.112.68]) by FMSMGA003.fm.intel.com with ESMTP; 04 Apr 2023 03:53:01 -0700 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, jiangshanlai@gmail.com, shan.kang@intel.com Subject: [PATCH v7 07/33] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Tue, 4 Apr 2023 03:26:50 -0700 Message-Id: <20230404102716.1795-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230404102716.1795-1-xin3.li@intel.com> References: <20230404102716.1795-1-xin3.li@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=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=unavailable 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?1762245103352192247?= X-GMAIL-MSGID: =?utf-8?q?1762245103352192247?= 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