Message ID | 20220930144758.30232-2-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 CCD60C4332F for <linux-mm@archiver.kernel.org>; Fri, 30 Sep 2022 14:48:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5B9908D0003; Fri, 30 Sep 2022 10:48:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 569B88D0001; Fri, 30 Sep 2022 10:48:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E2868D0003; Fri, 30 Sep 2022 10:48:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 2D18A8D0001 for <linux-mm@kvack.org>; Fri, 30 Sep 2022 10:48:27 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 04ADBA12C7 for <linux-mm@kvack.org>; Fri, 30 Sep 2022 14:48:26 +0000 (UTC) X-FDA: 79969032654.20.E0DC56D Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf23.hostedemail.com (Postfix) with ESMTP id 67BE5140004 for <linux-mm@kvack.org>; Fri, 30 Sep 2022 14:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664549306; x=1696085306; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q72u8o9NplBRndRYgPTxCNaKqaPHER7MLnoX2dvImDc=; b=O2AQbljo5mnWIW6ZLPVNFopZnbvPdRcGPZhkRT86gew29tX4/dpEkHBU VC8u05unAjlu9A0izoe4ZCDaehxxPo1Zlg6OilidkjBfL5nPMCoFSPpxF slLV7s91Y80XHZ+Gp6kFOR97a1Vsqp4sQHFibTHLWe9AWzVaVv6/vZKok nS27f0Uk+jK8h9IWEGDoLZ+EZyRuNBqH2vorLj5ZGc0cUEprv2069HGgC 68cbUsTtIDXng25YE0GGODneZtGJuXlBQa85QecZdeC/t8VzQhsYZJwjz UlJKI5ph5nIZ2amk8YQ4+8xsm+p+KAnHjPM4OYSMZDfMD0ZTJyN7SS+9x Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="366256216" X-IronPort-AV: E=Sophos;i="5.93,358,1654585200"; d="scan'208";a="366256216" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 07:48:09 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10486"; a="691271767" X-IronPort-AV: E=Sophos;i="5.93,358,1654585200"; d="scan'208";a="691271767" Received: from herrerop-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.38.128]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 07:48:04 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 33168104BD7; Fri, 30 Sep 2022 17:48:02 +0300 (+03) 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, Kostya Serebryany <kcc@google.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, Andrey Konovalov <andreyknvl@gmail.com>, Alexander Potapenko <glider@google.com>, Taras Madan <tarasmadan@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>, Bharata B Rao <bharata@amd.com>, Jacob Pan <jacob.jun.pan@linux.intel.com>, Ashok Raj <ashok.raj@intel.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Subject: [PATCHv9 01/14] x86/mm: Fix CR3_ADDR_MASK Date: Fri, 30 Sep 2022 17:47:45 +0300 Message-Id: <20220930144758.30232-2-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220930144758.30232-1-kirill.shutemov@linux.intel.com> References: <20220930144758.30232-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664549306; a=rsa-sha256; cv=none; b=lhxtXGSdKcRBCBrwJye3O5P7qKUFqXfXrGXMa+wIqnkP8jFmy12HQk2007wydEuGHFi+IR bwXyZfXPfhFp/V1v2bNOtcCOFblzqdD94f4GYrVEFMZh2q/nW9XZYmxGTQXSWanSpFsKX2 XG6jrrllN/PjVNi8gbBqSxpPKz/qKGQ= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=O2AQbljo; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none); spf=none (imf23.hostedemail.com: domain of kirill.shutemov@linux.intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=kirill.shutemov@linux.intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664549306; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6mUU88d77bz9mORxAl7NMj1cyDeY2JAozvJp4Bvmrgc=; b=ECSz+oUCRVao4VQQbrOyRwpx3pwSG9cvIc52cn7t4HzVrb9UgM9/3fqsuQWvuxHmDZX6QA Ontd/6KnaJ3oWe2VAYy+h4WYTEtUFN3h9I+/I9mW4ocEjjkt1HWDxrRoUmmyT2sXzeFrTc DvOecT/VMWTB0eePYA374GBqNEoK+jc= X-Rspamd-Queue-Id: 67BE5140004 X-Rspam-User: Authentication-Results: imf23.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=O2AQbljo; dmarc=fail reason="No valid SPF" header.from=intel.com (policy=none); spf=none (imf23.hostedemail.com: domain of kirill.shutemov@linux.intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=kirill.shutemov@linux.intel.com X-Rspamd-Server: rspam03 X-Stat-Signature: ayjj8yia7fp8htprxaqm6rgn3a8ph7uh X-HE-Tag: 1664549306-826597 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)