From patchwork Mon Apr 10 08:14:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 81419 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1761292vqo; Mon, 10 Apr 2023 01:54:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bwhLpQRmId+Oa1Z1KucBQ/S1oRfwz0KKAKp11NtUmQgDSs7TmbYFjS25eMpBt5RcMmN603 X-Received: by 2002:a05:6a20:4b23:b0:da:1b99:34f0 with SMTP id fp35-20020a056a204b2300b000da1b9934f0mr10866076pzb.39.1681116874446; Mon, 10 Apr 2023 01:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681116874; cv=none; d=google.com; s=arc-20160816; b=LMiTA4fuhIUpZSmnSDzm/HBCtcCjSUW8V2bZtIJY2de99eNslpIifa0fUoQUcciM0t an9FHiNI1EeiNH41OpGDaCtCC8uOeFj61DwRQwBKODS4Yz3brsnvXHb0go40wMw0pTNx KU6KmVU8sJhxVF1Afk2tKGCUYyRwjzl3l3pPm4f2zc/VHyigwaXE9zLYTpFeb9O0y1Mk IbivMd8ho0XEKbp4JpITCXp/e4LJuH0oGN0qhwlPNpJYpfYVK/OR8xN3HQYUDNaQ/p02 aj3Siu1nokhs6LanX2KNy9rbvGEhffXlWGBesIT3HQpugvKJ8oH5erYJ9r4J7qLLCSZa gKqQ== 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=e5fa7kS+QIFNcdm7Bhv2tUTvpfkHiDG9Rb5wSrnafo5rb1dqZyr13X4OGLVUie23bg UXHe9vS4zOC5gANtz9M9t/B/i2aeWqv504mNWOlJQuLwg4jT41HYOcaKAILSOijaDIS5 qU9hMxEORNkQN24IYNIMNeDLczAauvghEypNhOb/nT44YIka8UAWrP6aiE7HuEoEpiBn Mc7t2L6KW3ZFd7eRND851Hc48ujNa83GJmL/Fmvl1xrsbvREqGYHMN3YJJN74DvQoA4l GH/tBTPhR7Wlgze55RuA59xh9izV3JavHeyGZk7Z1GoQB6MH9PjJGq8IQ07WNspvFiKf p0Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IPnxKoll; 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 137-20020a63018f000000b0050bf0f0870esi10518876pgb.627.2023.04.10.01.54.22; Mon, 10 Apr 2023 01:54: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=IPnxKoll; 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 S229826AbjDJIle (ORCPT + 99 others); Mon, 10 Apr 2023 04:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjDJIlG (ORCPT ); Mon, 10 Apr 2023 04:41:06 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B0E421F; Mon, 10 Apr 2023 01:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681116065; x=1712652065; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9JZohEEZ3OOYA+uz2zlIPReipLAVM4kv9u7LWFHKKew=; b=IPnxKollasN9H/N8N80ML5eDMsRro/4DvSpwl1ZR9/evAVz0WiQF2oJJ v6dUJC/gwo+AzLpECndUwaIhKFYi/krcOz2tjND1uZiHftF4wD8pi4Cp1 TMQ+I+HO4KpkRoEUnwPxVhiDbrrHU5Y1mA0j/7eiautJf0GJPoysnxlJL 2K7pZ1JmSogCDndfPlB+C5fpW5UoMzpSORK7fHo/du0mwdh+G9b5iTK6A CpJ1TQh4obi08FAEuaMcCAAaUdQr1WP8geC7LNrFQvXlLvPguLwyf2Nid ruCvcmaDahRWGFbPWVIpHNyN9YsLszzqtsr60zfWq8V3EnIQMSOQZVrHh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10675"; a="342077934" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="342077934" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 01:41:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10675"; a="799436263" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="799436263" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga002.fm.intel.com with ESMTP; 10 Apr 2023 01:41:02 -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 v8 07/33] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Mon, 10 Apr 2023 01:14:12 -0700 Message-Id: <20230410081438.1750-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230410081438.1750-1-xin3.li@intel.com> References: <20230410081438.1750-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,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?1762778807543989663?= X-GMAIL-MSGID: =?utf-8?q?1762778807543989663?= 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