From patchwork Thu Mar 2 05:24:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 63232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp4063808wrd; Wed, 1 Mar 2023 21:54:13 -0800 (PST) X-Google-Smtp-Source: AK7set8kdY/oXGCVY6cP+TuMI0KSDze6M33NSQEJ5z5zGbxLBV0Ai9372qsw+Zz9mLKEdPs+5e0y X-Received: by 2002:a17:906:8302:b0:8a4:7fb9:5658 with SMTP id j2-20020a170906830200b008a47fb95658mr11017407ejx.55.1677736452866; Wed, 01 Mar 2023 21:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677736452; cv=none; d=google.com; s=arc-20160816; b=IYWkvTs5mGDOzGSqYZl3HZSrldX9XM9Klm0l7KTM1k2F6wMsir+hbdduXW8Ydbw82o fA5v+PdRZmpOCpYID78IlJI1homgSVMYh0j588erCS87eidzk6Rx2Y3iDIMuDAnCKXPH vXkuhMezpE7EpA/DltOlpv+XBnZQkXRJJNcdvzAte1uIcjsfHQyWUL7yHWYZNGCnj+I8 o+nym3yADNNtVY/Luw+CdfJVHaaTrtG/9JwbnvrcCvuGU910SWR9F4aOznkHIwuQALOh YZYcWk+nKXEzJTcT8M6xDuUzz3xpqqmHuL/15oa2hsOCe1cpMwFVZ0evCQ+koFYJDLbg dxNA== 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=J8nbr2h7yyLGRn/6xGc2njguIHBn60vA3Ciq0RMe21B/UqkpPIAGsvxAUzV0+iPcBc HHlQgrvDGV7tTkYNjNgnLn/ObpoJ2qQpoZl03who1TsYyNOkFE8anEsfzJ0YEtbhKslL 7lVp548fGJcLkyxzfG5drWuTm9mhRRyz6KB70k6ZvkvnSZB+BvZaot5nDpcrPondzSsD o2oplZXjn4yqvLHg8LE5Lb9WKsVhMsPIycAg15OegTegBcDdlS0CX2pPc9bIKWj49Zu2 3X1H3n/g/jPXocmj5p0ZTj7kpTuJFi8hLpJ8DF+whZYSgpwtjLom9MOEhNUMo7s56q4Q yUfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UyZqgT5j; 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 o15-20020a170906600f00b008d68d018141si13359678ejj.402.2023.03.01.21.53.50; Wed, 01 Mar 2023 21:54:12 -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=UyZqgT5j; 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 S229925AbjCBFvK (ORCPT + 99 others); Thu, 2 Mar 2023 00:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbjCBFuz (ORCPT ); Thu, 2 Mar 2023 00:50:55 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A274BE9D; Wed, 1 Mar 2023 21:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677736253; x=1709272253; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9JZohEEZ3OOYA+uz2zlIPReipLAVM4kv9u7LWFHKKew=; b=UyZqgT5jbK1A0GHEiOyK4VfOWeOFsa29A1d1tmiqVt7tuwAOW733vVSv hbGCnssN0iOdrCDhAt2aWR0mltaNs9ZIDNq8wnSVt3j9KHeZYKbrYW2MK 9+klphCrFIdGHarkgg1a6l+9itcPunjlACM05L5QyFvPHkD5u06F+36Oi Uzon/KLGvqAYThFXg5ntekpHU7Hjuzya5fdYWIAfCRhbh/ChXW5huCMlA rW5K8boDj/GuNqCYNQ71Cw24LGmdMGEhCgEqTbNa72wD+rePWJuzFucIy gy8+fIvPX9t+L102gk93g4SuTIi5xXaP83pyFesxmTkwBmwK5orjMq+p2 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="420887089" X-IronPort-AV: E=Sophos;i="5.98,226,1673942400"; d="scan'208";a="420887089" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 21:50:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="920530890" X-IronPort-AV: E=Sophos;i="5.98,226,1673942400"; d="scan'208";a="920530890" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga006.fm.intel.com with ESMTP; 01 Mar 2023 21:50:46 -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 v4 07/34] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Wed, 1 Mar 2023 21:24:44 -0800 Message-Id: <20230302052511.1918-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302052511.1918-1-xin3.li@intel.com> References: <20230302052511.1918-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?1759234179064497091?= X-GMAIL-MSGID: =?utf-8?q?1759234179064497091?= 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