From patchwork Mon Mar 27 07:58: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: 75265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1357265vqo; Mon, 27 Mar 2023 01:37:59 -0700 (PDT) X-Google-Smtp-Source: AKy350Zd0M+1tZ5ZW+gdBtmLt5NA9u3cjqjhdrLS2oF6KB/rUECplzV3LbOtQsYLXP6QnjqjKa8Q X-Received: by 2002:a17:907:2059:b0:8af:2107:6ce5 with SMTP id pg25-20020a170907205900b008af21076ce5mr10113587ejb.35.1679906279487; Mon, 27 Mar 2023 01:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906279; cv=none; d=google.com; s=arc-20160816; b=EEEc614VOcuopzx+m75TETEChEN+neSt4587EYrePMKRzILzKF7pU3FecqSlWDlNgD VnPB3sVTXmk07VZcIOaX0FHgpG3wfHkcdD/n8CV/oJ87s5JadZdjpNNLfmSOoQh19QYj RZCwAk0IjK0PdUrImXbCdGgkgbvQHgVM3g4aeNh6BezPlsnHhpbgv/apbCt1B7PSY9fC HG6Yj6L/Jo5y81n2QkphH6fl7fWcOpI25aUJyiqhjdckZp4YZAwI4grdP0DdltEZab/O iKlJ6MsRSymDtrPkw+yfqn53sPX+W0a58e/PfSFyPg7UfvDDVvCMSZEbGZOtqvRwfiPT Llgw== 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=KNbmgZSz6VcD8MslWSP7Nn7Y8/i7vyYsswxWtzdUT/BBM7BDCCiRVWNEVFYWttl4Be 7vNjmGtPjoxYh5lcEUa/bQBbSJ1YKfOTVghwNU/Wq6lorbLwxDIccq8mM7bPTw5X/UGr oVp8pqpkRUyBZqsAOQko+K2rX23zIzsxGLK84HlqfJxhafpgBVovfD/2+PFEijJfqsu6 0wu9aj+Xf3rk9v5lBmtD50Kc8EddTUQsg/EHX//DLhk3dyFX79sw9UchMAlH/OkwCsm6 ZYHsYq/rAB9ogAsLmh8j1dVreB5Iwp45SlZSjqyOd/U62yp6FvMn5eDqWK4/zN9ePRqR ymAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C9krPeJ7; 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 ca15-20020a170906a3cf00b008dd491949d5si27533315ejb.553.2023.03.27.01.37.34; Mon, 27 Mar 2023 01:37:59 -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=C9krPeJ7; 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 S233131AbjC0IZR (ORCPT + 99 others); Mon, 27 Mar 2023 04:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232985AbjC0IYf (ORCPT ); Mon, 27 Mar 2023 04:24:35 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76F692D6B; Mon, 27 Mar 2023 01:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679905473; x=1711441473; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9JZohEEZ3OOYA+uz2zlIPReipLAVM4kv9u7LWFHKKew=; b=C9krPeJ7yDNs8cmsXdTzBQ+G8QdUOPL1007L4L8UJY2AmupdXNEs3z7V LjCwBVzW2FWnA0pXj57IJ+Lscx6W6RBCj96Cg89WIwGmjNYs2xf4QYnLL 3L0b0qg52L4vvFlGJVD0ENDH0+CnqP4Uqs7YNpJXUJR3A7wYIP4MHVa73 JE4dW2Ld4ZDtHMM8Nqu4I+kSv5YAgfWtU+GUmCqIkcQBwCzz6jGDv7SvE vrnx4sXZqyYUtPaiSYBmdxqISdineYr20xn4C7YmVDk4Y2lFn6OsJ1Jxd qDH9mYYydHCYCnOjQQ5LDuJDXTg1Yrk7F09NDMk1ok1t3btkTGZNNJlc6 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="338930148" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="338930148" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 01:24:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="713787052" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="713787052" Received: from unknown (HELO fred..) ([172.25.112.68]) by orsmga008.jf.intel.com with ESMTP; 27 Mar 2023 01:24:31 -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 v6 07/33] x86/opcode: add ERETU, ERETS instructions to x86-opcode-map Date: Mon, 27 Mar 2023 00:58:12 -0700 Message-Id: <20230327075838.5403-8-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327075838.5403-1-xin3.li@intel.com> References: <20230327075838.5403-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?1761509407234005653?= X-GMAIL-MSGID: =?utf-8?q?1761509407234005653?= 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