From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by kanga.kvack.org (Postfix) with ESMTP id F23F66B0033 for ; Mon, 27 Nov 2017 08:27:25 -0500 (EST) Received: by mail-wr0-f198.google.com with SMTP id k18so18090433wre.11 for ; Mon, 27 Nov 2017 05:27:25 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e11sor3076681wmi.18.2017.11.27.05.27.24 for (Google Transport Security); Mon, 27 Nov 2017 05:27:24 -0800 (PST) Date: Mon, 27 Nov 2017 14:27:21 +0100 From: Ingo Molnar Subject: Re: [PATCH v2] x86/mm/kaiser: Disable global pages by default with KAISER Message-ID: <20171127132721.fusxlnhjv3igtkt4@gmail.com> References: <20171110193058.BECA7D88@viggo.jf.intel.com> <20171110193105.02A90543@viggo.jf.intel.com> <1510688325.1080.1.camel@redhat.com> <20171126144842.7ojxbo5wsu44w4ti@gmail.com> <20171127132037.tqmnwchnmxp67n35@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Thomas Gleixner Cc: Rik van Riel , Dave Hansen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, bp@suse.de, moritz.lipp@iaik.tugraz.at, daniel.gruss@iaik.tugraz.at, michael.schwarz@iaik.tugraz.at, richard.fellner@student.tugraz.at, luto@kernel.org, torvalds@linux-foundation.org, keescook@google.com, hughd@google.com, x86@kernel.org * Thomas Gleixner wrote: > On Mon, 27 Nov 2017, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > > > On Sun, 26 Nov 2017, Ingo Molnar wrote: > > > > * Disable global pages for anything using the default > > > > * __PAGE_KERNEL* macros. > > > > * > > > > * PGE will still be enabled and _PAGE_GLOBAL may still be used carefully > > > > * for a few selected kernel mappings which must be visible to userspace, > > > > * when KAISER is enabled, like the entry/exit code and data. > > > > */ > > > > #ifdef CONFIG_KAISER > > > > #define __PAGE_KERNEL_GLOBAL 0 > > > > #else > > > > #define __PAGE_KERNEL_GLOBAL _PAGE_GLOBAL > > > > #endif > > > > > > > > ... and I've added your Reviewed-by tag which I assume now applies? > > > > > > Ideally we replace the whole patch with the __supported_pte_mask one which > > > I posted as a delta patch. > > > > Yeah, so I squashed these two patches: > > > > 09d76fc407e0: x86/mm/kaiser: Disable global pages by default with KAISER > > bac79112ee4a: x86/mm/kaiser: Simplify disabling of global pages > > > > into a single patch, which results in the single patch below, with an updated > > changelog that reflects the cleanups. I kept Dave's authorship and credited you > > for the simplification. > > > > Note that the squashed commit had some whitespace noise which I skipped, further > > simplifying the patch. > > > > Is it OK this way? If yes then I'll reshuffle the tree with this variant. > > Yes. Ok, new version pushed out to -tip:WIP.x86/mm. Thanks, Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org