From patchwork Fri Feb 24 07:01:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 61150 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp756191wrd; Thu, 23 Feb 2023 23:29:20 -0800 (PST) X-Google-Smtp-Source: AK7set8mEcbmesHZvxHI6WzfsUuLL2cLUZ921EyxHpF8Qw2FKtfaxl6EXlkOITUMCzhuVnEAbIjU X-Received: by 2002:a05:6402:516f:b0:4af:64b8:27fd with SMTP id d15-20020a056402516f00b004af64b827fdmr6140783ede.24.1677223760528; Thu, 23 Feb 2023 23:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677223760; cv=none; d=google.com; s=arc-20160816; b=FV1y76VZxcCEJEOLQQKLR29sXcz4G/5/Srl8n0etJB+G0LU2oWe0QUcPUn0iFDK+q3 RmltrzH3dhyp8HNL1fz+b3ouz64CbD+skt6/EBlYVY/29OW7ZL9BICEcKiQfZKCHERtV wylV3VBX8VjekwEhvhYtpsyZI0MSbIa98911PAnEm4F47wMw7D0GTWEbtiWpmn0BQPFW +P+cky65q/ov/8Cb0HyZS0dqncUU5rmXfFmATXed4BqteCycJimRkBZJYjfDjGdC8nlx 6x7h3SUdE1W822obPyYGfU5jEm5M8rXgm2j+cJp/a9wdiuc+iVbMjJSCe04a4Sp1h9gx CtmA== 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=oejctMV811aFgvDKhCKUUP11reXUZ6KoVZAOSRevRPc=; b=S/xNivYkEW7YE6RzyiROiCJfJUiZ8UT+wAPAm6Bxeo5ylFvvXkLratFEHaU6SgMXwo y1ARJn0DyiEZwDLaNls2SzaRecSsXgD4ubGlZhuTrKNxtSeq8OXK/KPjtg7CFdCPF0Qq E6OskA30E4IIwYGS28RH2dnkpwI2SD60yPSlx7fpX+RK62uKse+QAbjEOvFM3ORTD2kJ TzqFhnxmxdxDEoTuDlOzUYzbU6lt+nj8pq8F2Z6l8FEgarWXmgEL3ZxgUzyCNp0uG5rl efLVuJ/JY2vijwxrBFCMGdH27up1amYT7UsB5/jNHzI/A/NEjpxOMwJe8nynkSzgv68Y dKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MpsOjrq+; 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 bc28-20020a056402205c00b004ab4c6f9996si18855444edb.516.2023.02.23.23.28.57; Thu, 23 Feb 2023 23:29:20 -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=MpsOjrq+; 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 S229528AbjBXH2X (ORCPT + 99 others); Fri, 24 Feb 2023 02:28:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjBXH2B (ORCPT ); Fri, 24 Feb 2023 02:28:01 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DB4D113E3; Thu, 23 Feb 2023 23:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677223677; x=1708759677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HXuHZjSMZ3B1Hok/xgWVtrid7iYmCcbq68b8/8447FE=; b=MpsOjrq+JZpY1cnCfRFzAqh/nUgIf163T+J9c66cloPsvYLecUyvmOJ9 46a3uRTREIaEhg9/14dq63Tk3wkT4u+rcH6epKiRWhq75UZvcpJdOiPNM 2gJz6ACWhxf4Jo62/BBlhjKuRhv2Hs+ALWMFevSAJwE9bifIJ2j/equKB AnhxY5NIYpirZzBaF1dsqkyjM0X+PBHisMtdOl1ZH2RPZBzylfeev7jo5 n1PeNei6EkGgh4Wi9XoH2uNPDDDoItEr+SvUi9ZQora13hezmLhZXYKA5 2OVHl3C6x1G7C27And5N332vwdhnkYDQTHvsN/sYYqYvc3zSjZOfYqxNZ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10630"; a="334835978" X-IronPort-AV: E=Sophos;i="5.97,324,1669104000"; d="scan'208";a="334835978" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2023 23:27:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10630"; a="815639206" X-IronPort-AV: E=Sophos;i="5.97,324,1669104000"; d="scan'208";a="815639206" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga001.fm.intel.com with ESMTP; 23 Feb 2023 23:27:21 -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 v3 07/32] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Thu, 23 Feb 2023 23:01:20 -0800 Message-Id: <20230224070145.3572-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230224070145.3572-1-xin3.li@intel.com> References: <20230224070145.3572-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, 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?1758696582214612870?= X-GMAIL-MSGID: =?utf-8?q?1758696582214612870?= 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) 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