From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DD5319CC20 for ; Thu, 23 Jan 2025 17:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737653088; cv=none; b=p62vamwsIcXwXFBnhIuL5zND7tMaMwM03ZdO7wis0f/Dfs0bPAJV6sMxrkxF9VCria6MsGo+A4dniko7QeAuVt9Hogr8rYv9yJovblWdLMVhY0hyfIh1X1wQBVQOdKjhEAGR/nqd7wEHRI+RxfjRmMnbxnFkMXFkO849AIwQhG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737653088; c=relaxed/simple; bh=Bck4FCW/PLKfNJIG1ZSY6HRISH3EQagfTg5boEH92Bc=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=c+6mCFDyNAI3n6LecyaTrS5yZopvkd+ToNXBCcekAeXsaMv6f2sKBrMr7ZHG6MESOh79z/tItjk8K0db+Fo2PeUi9RFEkf01LmjtJp3Xn/bTAAV9C2wlZMYbYwgte4gp1FcoMVsjE0S0WDDsO5z3USKAYp1QThhV9hnByssaoK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Mjk5Zkuk; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Mjk5Zkuk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737653087; x=1769189087; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=Bck4FCW/PLKfNJIG1ZSY6HRISH3EQagfTg5boEH92Bc=; b=Mjk5Zkuk2/KFLzg+vabYPJo02vodecAJrKIOQ1Tq05bRWacTeJxoaplA 4jdj25zZBd89lxQJ+ZOkf6MGUZLQLA132uaxcv3ht3J3zjWQwj05TJo25 od4gsZ9l9mAAasgaMc5/s0tgLU6Zfy2HUFIUOKvhs+Thvj4cmlwWzovQG W1Xe4WzuagV8cm8M5Io3iYfSKMKQOIQ7j9/JhglzrPqJ3wWaf03UdJqzj ReC7ASd7C6te/Kxu2jNqfIoF1MzLzEkD/ivBCUjCEmtm/1U1CwLx9vPSH 1g3H8RVtvPJq/j91hxmT5FX856FMgFa1a29g3eHZB8N6NBmx1bmTR5kos g==; X-CSE-ConnectionGUID: CxUq3Wd1QZ+6t+KguJFkCw== X-CSE-MsgGUID: FzbGeHEARI2sqNVboO+zwA== X-IronPort-AV: E=McAfee;i="6700,10204,11314"; a="49583925" X-IronPort-AV: E=Sophos;i="6.12,310,1728975600"; d="scan'208";a="49583925" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2025 09:24:42 -0800 X-CSE-ConnectionGUID: BdALhz3HT0yT46ezgpfcoA== X-CSE-MsgGUID: 7e0d0TWVQB2HWlo8U95k3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,229,1732608000"; d="scan'208";a="107650015" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.164.11]) by fmviesa008.fm.intel.com with ESMTP; 23 Jan 2025 09:24:41 -0800 Subject: [RFC][PATCH 8/8] x86/mm: Remove now unused SHARED_KERNEL_PMD To: linux-kernel@vger.kernel.org Cc: x86@kernel.org,tglx@linutronix.de,bp@alien8.de,joro@8bytes.org,luto@kernel.org,peterz@infradead.org,kirill.shutemov@linux.intel.com,rick.p.edgecombe@intel.com,jgross@suse.com,Dave Hansen From: Dave Hansen Date: Thu, 23 Jan 2025 09:24:41 -0800 References: <20250123172428.D6D8C8D9@davehans-spike.ostc.intel.com> In-Reply-To: <20250123172428.D6D8C8D9@davehans-spike.ostc.intel.com> Message-Id: <20250123172441.2DFF8BCA@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Dave Hansen All the users of SHARED_KERNEL_PMD are gone. Zap it. Signed-off-by: Dave Hansen --- b/arch/x86/include/asm/pgtable-2level_types.h | 2 -- b/arch/x86/include/asm/pgtable-3level_types.h | 2 -- b/arch/x86/include/asm/pgtable_64_types.h | 2 -- 3 files changed, 6 deletions(-) diff -puN arch/x86/include/asm/pgtable-2level_types.h~zap-SHARED_KERNEL_PMD arch/x86/include/asm/pgtable-2level_types.h --- a/arch/x86/include/asm/pgtable-2level_types.h~zap-SHARED_KERNEL_PMD 2025-01-23 09:20:53.502449700 -0800 +++ b/arch/x86/include/asm/pgtable-2level_types.h 2025-01-23 09:20:53.506449845 -0800 @@ -18,8 +18,6 @@ typedef union { } pte_t; #endif /* !__ASSEMBLY__ */ -#define SHARED_KERNEL_PMD 0 - #define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED /* diff -puN arch/x86/include/asm/pgtable-3level_types.h~zap-SHARED_KERNEL_PMD arch/x86/include/asm/pgtable-3level_types.h --- a/arch/x86/include/asm/pgtable-3level_types.h~zap-SHARED_KERNEL_PMD 2025-01-23 09:20:53.502449700 -0800 +++ b/arch/x86/include/asm/pgtable-3level_types.h 2025-01-23 09:20:53.506449845 -0800 @@ -27,8 +27,6 @@ typedef union { } pmd_t; #endif /* !__ASSEMBLY__ */ -#define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI)) - #define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED /* diff -puN arch/x86/include/asm/pgtable_64_types.h~zap-SHARED_KERNEL_PMD arch/x86/include/asm/pgtable_64_types.h --- a/arch/x86/include/asm/pgtable_64_types.h~zap-SHARED_KERNEL_PMD 2025-01-23 09:20:53.506449845 -0800 +++ b/arch/x86/include/asm/pgtable_64_types.h 2025-01-23 09:20:53.506449845 -0800 @@ -46,8 +46,6 @@ extern unsigned int ptrs_per_p4d; #endif /* !__ASSEMBLY__ */ -#define SHARED_KERNEL_PMD 0 - #ifdef CONFIG_X86_5LEVEL /* _