Message ID | 20231003062458.23552-3-xin3.li@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1898514vqb; Mon, 2 Oct 2023 23:54:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGo+j6crL+JsLeZfQ56PjduJjDskDQg4g5gwzS+eSoh90i1+TdIr5Pp8KlRHDAv31ynoDl2 X-Received: by 2002:a05:6a00:1944:b0:68a:5cf8:dae4 with SMTP id s4-20020a056a00194400b0068a5cf8dae4mr2917172pfk.3.1696316098280; Mon, 02 Oct 2023 23:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696316098; cv=none; d=google.com; s=arc-20160816; b=qt75i+qbgsphCFIsAfsrbznKpWGM3Tp5j89w6o/ozzlM/c6m9LfCpBy1OF9DMZw6BZ xp7DnmCZm1VlKB7x+FNZgLe90ltBQIwayJo2TqmvlDGiGc4hh4zQk9t8LIp8uOyASMHP ZeztQgBO5d5wXKOmGQUUJjMVWhrCI4XRQezEBPBKSE+QfahgG92T477cNDylwyCELSF8 8i+cZMPZ/CAM7uMvSrRcyvW+aesPw+UYXxN3uriv6wXUM0BnK8v0gIIHCJ0b8BhZgW+X JOUAyWdxGccLlG3nAJey/tsB3DTyyzwogDDCiuOgW7u9metfnM/0BtlFEoSzuKxPUpFA ej4w== 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=LXbqdH8gWtoBhrb66it70sLCmNpcNVQi3CG1/rMatpY=; fh=Tb1p8S3iOxe/kX/WSNC3xEJzSVgGJ5DaxSrKb+pzH+4=; b=D5hDAP191e+VrTPvGvf9aSPMbNAzXkvTlwq9fQyVf1Zh5+IMspU3zimB5Ne4FGQP9U rBk9d3KGq0bdd8VJn4AYBzkXPkhmoAFxx76/i3HxjCB1pmzBMO14qm3fk6Nf1PJEkBrn KocAmSXcva3RKV8w+2pFlFou5uVINCxUE3lYeIh5Bu3fPnZlLLyxWgqOtZqXLRwhVRTU Kb7+iELoxcyOuSfMHIulce+Z0Zum2e1QtgKMJ42aT3M48OwfyGK4xfe5c8mPvWBb3YdD TUrcyIm/ZHAj+fSH/r90wuPuFX4ZblKi1soBKg5xs5n41PwusOISrhAQ3rhnmN4EVkdE aI+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CK2YHIt6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x4-20020a056a00188400b00690d00d52efsi879111pfh.264.2023.10.02.23.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 23:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CK2YHIt6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 75DFF822DA2E; Mon, 2 Oct 2023 23:54:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbjJCGys (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Tue, 3 Oct 2023 02:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbjJCGyl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 3 Oct 2023 02:54:41 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 706DBB0; Mon, 2 Oct 2023 23:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696316078; x=1727852078; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MxQyQabDuj01hP6xHQ5mL2MlMceZ5LcTb8ReoP3KjJA=; b=CK2YHIt64IFZMDSZcLtcvQbtNWV6boBIUHO5BCPyx5gQoucfbLkf/cKJ M2QrakQRx5f9NGJSEP7TyN1RkMl5SpLKpo4zExT8jb4IBIkFE7LHnB0FZ 119e8MAKWhM327DajLEA7Z7AkDzBELL1vFtPdidJ3QYFr5j6rgkNhZhhs PnYgjzRUObzrkDTpwo9IJY2E9ytrUq1r0YVcmWkb+kCTADOvOwd7jr2rp 60rzqAtrF+M6Na0iHk18QPikkraLtf2tH2zun+vVKPdJI8dDD7vsiq7c5 dHt/Bp/oYvgJqzHIyHZzivyXiDmPEbuQkXA0x1Um8EzeHoqYJtNWpDfEZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="367857913" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="367857913" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2023 23:54:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="1081900898" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="1081900898" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga005.fm.intel.com with ESMTP; 02 Oct 2023 23:54:35 -0700 From: Xin Li <xin3.li@intel.com> To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, luto@kernel.org, pbonzini@redhat.com, seanjc@google.com, peterz@infradead.org, jgross@suse.com, ravi.v.shankar@intel.com, mhiramat@kernel.org, andrew.cooper3@citrix.com, jiangshanlai@gmail.com, nik.borisov@suse.com Subject: [PATCH v12 02/37] x86/opcode: Add the WRMSRNS instruction to the x86 opcode map Date: Mon, 2 Oct 2023 23:24:23 -0700 Message-Id: <20231003062458.23552-3-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231003062458.23552-1-xin3.li@intel.com> References: <20231003062458.23552-1-xin3.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 23:54:57 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778716349353472277 X-GMAIL-MSGID: 1778716349353472277 |
Series |
x86: enable FRED for x86-64
|
|
Commit Message
Li, Xin3
Oct. 3, 2023, 6:24 a.m. UTC
Add the opcode used by WRMSRNS, which is the non-serializing version of WRMSR and may replace it to improve performance, to the x86 opcode map. Tested-by: Shan Kang <shan.kang@intel.com> Signed-off-by: Xin Li <xin3.li@intel.com> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> --- arch/x86/lib/x86-opcode-map.txt | 2 +- tools/arch/x86/lib/x86-opcode-map.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Comments
> Add the opcode used by WRMSRNS, which is the non-serializing version of > WRMSR and may replace it to improve performance, to the x86 opcode map. > > Tested-by: Shan Kang <shan.kang@intel.com> > Signed-off-by: Xin Li <xin3.li@intel.com> > Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Hi Masami, Boris prefers to merge the first 3 patches into one: https://lore.kernel.org/lkml/20231108123647.GBZUuA31zntox0W0gu@fat_crate.local/#t So I'm thinking could you please also ack the other 2 patches (1st and 3rd of this patch set)? Thus I can keep your acked-by 😊 Thanks! Xin > --- > 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..1efe1d9bf5ce 100644 --- a/arch/x86/lib/x86-opcode-map.txt +++ b/arch/x86/lib/x86-opcode-map.txt @@ -1051,7 +1051,7 @@ GrpTable: Grp6 EndTable GrpTable: Grp7 -0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) +0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) | WRMSRNS (110),(11B) 1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(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 diff --git a/tools/arch/x86/lib/x86-opcode-map.txt b/tools/arch/x86/lib/x86-opcode-map.txt index 5168ee0360b2..1efe1d9bf5ce 100644 --- a/tools/arch/x86/lib/x86-opcode-map.txt +++ b/tools/arch/x86/lib/x86-opcode-map.txt @@ -1051,7 +1051,7 @@ GrpTable: Grp6 EndTable GrpTable: Grp7 -0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) +0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) | WRMSRNS (110),(11B) 1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(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