From patchwork Tue Dec 20 06:36:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 34917 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2813103wrn; Mon, 19 Dec 2022 23:02:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXurrVNy6Lv5gvyewOkTOnVEPiw+ZgPfftv5eWcqDLsHKnlrBcgKj7LbKObU88/vtFNRI5kX X-Received: by 2002:aa7:88d1:0:b0:57f:ca45:66c9 with SMTP id k17-20020aa788d1000000b0057fca4566c9mr11068906pff.13.1671519774378; Mon, 19 Dec 2022 23:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671519774; cv=none; d=google.com; s=arc-20160816; b=UGlM7mEtsCoNjDqMPje0yaYsFaxA9O5T89wQThF8SVq061qWCKgncSX0t735j6mV7f A0H7t180SgtKPJ56bnZtxTp9b/qVr1BTO5Xms22XqwmY3NyMVMkgKwXp39i9yyQbOxFq 9A0MrEgUrEU3ttIQHGgR2PsZ9ZouZZDWkGIbI3L4S02bRsZRdLT7EFTYguatB54cCQmk lXa1QSJa/uWuGTNg0x8dX9IwOAlnwBvqO43OE57RqWG/cNILrpsYv9YK3emR0XDK74ip Ud0R9ny2e0SSMK2F6YTSWvRBxnZUNKozEaGa1HB+nCSzOf1m13CO2HJGcYSrOYVIIRKt NSFQ== 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=TQjrhwUUEfUZReX1mssLCOsHZC20d5FFAicax1xItt0=; b=A48pea6AUbJWBPoju/fbuucfB1GQyJfEBl1XnC33gHWzhXBmyRhvj40+TQBZxlk3UO DbQptavFzDcTxS8kNC1eOyy4us1WrkVjNmZa7oqpQVkbhZqsB/GjWmQa1g1SY0F0jckb BCRZNOjjr29AymBVzXFP8kHfl3gSnLo9KfKu1EZDHYWQMccG+hZEFhzrWDFdUcGF73zs mnL0T/9DHXkzwu/hz5O1ADbmlA2sJL+gSQLrlmOidzN+6AOdDW52g4+eCRwXkmvqjhXX v1xNPw5qfqtAIm7ksANiG+r4zUJTD4Y2MCiiWrQpa7l7NTpNf0OOMoAGA5XCHgOVOiWE QwjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AvQvql6m; 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 b2-20020a056a00114200b00576a51119c0si13883003pfm.179.2022.12.19.23.02.41; Mon, 19 Dec 2022 23:02:54 -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=AvQvql6m; 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 S233425AbiLTHCF (ORCPT + 99 others); Tue, 20 Dec 2022 02:02:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233071AbiLTHBb (ORCPT ); Tue, 20 Dec 2022 02:01:31 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C70DEE4; Mon, 19 Dec 2022 23:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671519690; x=1703055690; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HUHrRZTDjkecGuHDXK4PBl+TXz2Ml8+ie04d+kki1CQ=; b=AvQvql6m16PcNdYAt6aalDgU3E5Zew9nhn7vlDa9yVktC2F1fn8NLOS8 hGge+DyvS6Etdt10Jo/trvRJv981jB3az1W0BtipOFF9JpP7MjaE2uk38 ky9hg9er9tDdZMkmioNgM5ZZYT4Um28S2sl06mQ8M3CBukXCM22ASoZLT oaVHTVdHbqP1jJTviNwdJOr3Ep4RVzeqFdajlCvE/mD9kF71m6teUJCM1 ei4wnZ8fl3dl1QgEyG5LOuNfS0mkkMi5eMZuPH2FFLa0Y35FqOqGcl0bj LlbS7zirExi11p6Xnl0pVDPb07Cc13Cay6Nhqbe+FXLulKo71o20reR32 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10566"; a="302971948" X-IronPort-AV: E=Sophos;i="5.96,258,1665471600"; d="scan'208";a="302971948" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2022 23:01:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10566"; a="644326436" X-IronPort-AV: E=Sophos;i="5.96,258,1665471600"; d="scan'208";a="644326436" Received: from unknown (HELO fred..) ([172.25.112.68]) by orsmga007.jf.intel.com with ESMTP; 19 Dec 2022 23:01:10 -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: [RFC PATCH 07/32] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Mon, 19 Dec 2022 22:36:33 -0800 Message-Id: <20221220063658.19271-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221220063658.19271-1-xin3.li@intel.com> References: <20221220063658.19271-1-xin3.li@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1752715519035721689?= X-GMAIL-MSGID: =?utf-8?q?1752715519035721689?= From: "H. Peter Anvin (Intel)" Add the instruction opcodes used by FRED: ERETU, ERETS. 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 | 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