From: Dave Hansen Subject: Re: [RFC PATCH 5/6] x86/alternatives: use temporary mm for text poking Date: Wed, 29 Aug 2018 09:37:13 -0700 Message-ID: <17f2c74c-93fb-5ec8-4022-bd433fe0e429@intel.com> References: <20180829081147.184610-1-namit@vmware.com> <20180829081147.184610-6-namit@vmware.com> <20180829092839.GP24124@hirez.programming.kicks-ass.net> <20180829161400.GV24124@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Andy Lutomirski , Peter Zijlstra Cc: Nadav Amit , Thomas Gleixner , LKML , Ingo Molnar , X86 ML , Arnd Bergmann , linux-arch , Masami Hiramatsu , Kees Cook List-Id: linux-arch.vger.kernel.org On 08/29/2018 09:32 AM, Andy Lutomirski wrote: > It's plausible that there are workloads where the current code is > faster, such as where we're munmapping a single page via syscall and > we'd prefer to only flush that one TLB entry even if the flush > operation is slower as a result. Yeah, I don't specifically remember testing it. But, I know I wanted to avoid throwing away thousands of TLB entries when we only want to rid ourselves of one.