Message ID | 20220511022751.65540-3-kirill.shutemov@linux.intel.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BBA1C433EF for <linux-mm@archiver.kernel.org>; Wed, 11 May 2022 02:29:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E79516B0071; Tue, 10 May 2022 22:29:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E008C6B0072; Tue, 10 May 2022 22:29:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C7AF96B0075; Tue, 10 May 2022 22:29:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B66D16B0071 for <linux-mm@kvack.org>; Tue, 10 May 2022 22:29:41 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8D58331EA4 for <linux-mm@kvack.org>; Wed, 11 May 2022 02:29:41 +0000 (UTC) X-FDA: 79451881362.30.353BE1A Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf04.hostedemail.com (Postfix) with ESMTP id A492C400A8 for <linux-mm@kvack.org>; Wed, 11 May 2022 02:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652236180; x=1683772180; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YJmOMZm2CAZNr36cdPGE67zJRph2jZlNrnhMlnzgytk=; b=RHZkyObIS1olfUz03FKB11ITQ3oGVRSxZPbKq8c8r37QeVpAN+fU+d5p PesBZjq69Dw46M65z7LmwZL2IPupkuVR4jOlSzAid0jnc7+t6j3SfkgDD v9NDwFouCGiqvYtSmcTDMif+vawFb+QGL+OJK4ANteiCpq/AGF6PrvDNk sUdMY2NuDVOjuc62es1BYYyU8NpYwkjead6pTB4mDlMMtVA7FoVwcK3fv r46a/XPx/A6EBU64V26WLsSanA+JyKh1ALutWG97zy4E3CIiXZj3HmM9e PSxoe8EIjFh1uGKVArMN1qXArXTYr8Zz9LR07JZsyJ9HbHgQQGtljIaCp A==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="294798589" X-IronPort-AV: E=Sophos;i="5.91,215,1647327600"; d="scan'208";a="294798589" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 19:29:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,215,1647327600"; d="scan'208";a="895145507" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2022 19:29:36 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 1CC52530; Wed, 11 May 2022 05:28:01 +0300 (EEST) From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> To: Dave Hansen <dave.hansen@linux.intel.com>, Andy Lutomirski <luto@kernel.org>, Peter Zijlstra <peterz@infradead.org> Cc: x86@kernel.org, Andrey Ryabinin <aryabinin@virtuozzo.com>, Alexander Potapenko <glider@google.com>, Dmitry Vyukov <dvyukov@google.com>, "H . J . Lu" <hjl.tools@gmail.com>, Andi Kleen <ak@linux.intel.com>, Rick Edgecombe <rick.p.edgecombe@intel.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Subject: [RFCv2 01/10] x86/mm: Fix CR3_ADDR_MASK Date: Wed, 11 May 2022 05:27:42 +0300 Message-Id: <20220511022751.65540-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220511022751.65540-1-kirill.shutemov@linux.intel.com> References: <20220511022751.65540-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: jztn3urqriimzxpxxbk8uzj1ngxdsqep X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: A492C400A8 Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RHZkyObI; spf=none (imf04.hostedemail.com: domain of kirill.shutemov@linux.intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=kirill.shutemov@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-HE-Tag: 1652236170-712432 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Linear Address Masking enabling
|
expand
|
diff --git a/arch/x86/include/asm/processor-flags.h b/arch/x86/include/asm/processor-flags.h index 02c2cbda4a74..a7f3d9100adb 100644 --- a/arch/x86/include/asm/processor-flags.h +++ b/arch/x86/include/asm/processor-flags.h @@ -35,7 +35,7 @@ */ #ifdef CONFIG_X86_64 /* Mask off the address space ID and SME encryption bits. */ -#define CR3_ADDR_MASK __sme_clr(0x7FFFFFFFFFFFF000ull) +#define CR3_ADDR_MASK __sme_clr(PHYSICAL_PAGE_MASK) #define CR3_PCID_MASK 0xFFFull #define CR3_NOFLUSH BIT_ULL(63)
The mask must not include bits above physical address mask. These bits are reserved and can be used for other things. Bits 61 and 62 are used for Linear Address Masking. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> --- arch/x86/include/asm/processor-flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)