Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp7436ybt; Fri, 12 Jun 2020 17:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu29kv+x0lZC+sSE+GNvBc3V7FL3/BxrhBy+D4UrT3jzvCac4OIfVYiho7q2SIh/ronYhi X-Received: by 2002:a17:906:19c7:: with SMTP id h7mr15337066ejd.403.1592009152085; Fri, 12 Jun 2020 17:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592009152; cv=none; d=google.com; s=arc-20160816; b=P2cHwUkcnSf0SkedK+52TifJ+OEiK6MdR7AI8L3Mplo9u2GXoNXEx14J8j9of1LEdP hx3CS8+CU8b5dTB/3OaXDR5+a5CZVuMdjUDWZe9w1AdqVaOQQ6g/REEeKLnt/MYmDNOb py2Jzz1+diehqQDq4ZJIZ5wJ+rcpM4M1luOA8pV3EBNL0VOHsrwrjiQuKLhhg8BHPc3M f4NwhtDo3CnFq62YOynCiwxtXMIKjz9F8VgCnKj2VsfPUbNNjuj+3S/QFmtDTCxnEfrq dIRIUeaP0gHs7sBj1kRmU7aB2UeMhnytoXojs7vyS2d1+EmOwQi+ZskkurSk8ojRWb8r Wwsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=6XwJpTTleynMXhL2TW0w4LQP9CIij17WzBTC/z9n2Ak=; b=kJYtyUxgyszuwqyDI0bvaZNPmuPuup6EZ2MML4YcZASw0yFULUeXa/oORa18ObhC92 QG9VDC/cb9EC8fKAjfZkKLJrJOO7E5rXp6uW17++uqxE09+Z7mcgCdk0HV/ShUGrkeLi 8Y1NNVZ8sE+VQRzICBy8tCcZ2nqktYYv3puKqTeRFqCcj34a1oIzsPBEUmC3J53GZm0V MqFRsIt0TqDiwaygjnTjmbbxZ1l/LuZvHX4+HMUsStqGHaCKsKIyrqLGz278DHfUhO0/ WRPAnRg9nckLkwR6VybliDrT/cAW+bb2vR6+1cwQwZSgMc3tFbA6xhrNSZVltzto0FuM gDNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si4478023eji.192.2020.06.12.17.45.29; Fri, 12 Jun 2020 17:45:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbgFMAm1 (ORCPT + 99 others); Fri, 12 Jun 2020 20:42:27 -0400 Received: from mga12.intel.com ([192.55.52.136]:1253 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726453AbgFMAlx (ORCPT ); Fri, 12 Jun 2020 20:41:53 -0400 IronPort-SDR: zjiuIyGOvAQpyCv0iAHGMTY9lMuIsnGYch0GaVPt0KJTcKJsVwjOLEzw6M+tJ3Hsi+nljNrT+M E8pViSylpSjw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2020 17:41:52 -0700 IronPort-SDR: qVmp0TTLnRZHZcjTnrIO9q6tX8ukQ4v23kUP4yVt7BbUM2GfEhs0v5CDcU/mEFA/+HNsmcAH23 IQNS9uy+p5xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,505,1583222400"; d="scan'208";a="261011223" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by orsmga007.jf.intel.com with ESMTP; 12 Jun 2020 17:41:51 -0700 From: Fenghua Yu To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H Peter Anvin" , "David Woodhouse" , "Lu Baolu" , "Frederic Barrat" , "Andrew Donnellan" , "Felix Kuehling" , "Joerg Roedel" , "Dave Hansen" , "Tony Luck" , "Ashok Raj" , "Jacob Jun Pan" , "Dave Jiang" , "Yu-cheng Yu" , "Sohil Mehta" , "Ravi V Shankar" Cc: "linux-kernel" , "x86" , iommu@lists.linux-foundation.org, "amd-gfx" , "linuxppc-dev" , Fenghua Yu Subject: [PATCH v2 07/12] x86/msr-index: Define IA32_PASID MSR Date: Fri, 12 Jun 2020 17:41:28 -0700 Message-Id: <1592008893-9388-8-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1592008893-9388-1-git-send-email-fenghua.yu@intel.com> References: <1592008893-9388-1-git-send-email-fenghua.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The IA32_PASID MSR (0xd93) contains the Process Address Space Identifier (PASID), a 20-bit value. Bit 31 must be set to indicate the value programmed in the MSR is valid. Hardware uses PASID to identify process address space and direct responses to the right address space. Signed-off-by: Fenghua Yu Reviewed-by: Tony Luck --- v2: - Change "identify process" to "identify process address space" in the commit message (Thomas) arch/x86/include/asm/msr-index.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index e8370e64a155..e5f699ff1dd6 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -237,6 +237,9 @@ #define MSR_IA32_LASTINTFROMIP 0x000001dd #define MSR_IA32_LASTINTTOIP 0x000001de +#define MSR_IA32_PASID 0x00000d93 +#define MSR_IA32_PASID_VALID BIT_ULL(31) + /* DEBUGCTLMSR bits (others vary by model): */ #define DEBUGCTLMSR_LBR (1UL << 0) /* last branch recording */ #define DEBUGCTLMSR_BTF_SHIFT 1 -- 2.19.1