From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 15 May 2018 14:35:42 +0200 From: Peter Zijlstra To: Mark Rutland Cc: Boaz Harrosh , Matthew Wilcox , Jeff Moyer , Andrew Morton , "Kirill A. Shutemov" , linux-kernel , linux-fsdevel , "linux-mm@kvack.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Dave Hansen , Rik van Riel , Jan Kara , Matthew Wilcox , Amit Golander Subject: Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU Message-ID: <20180515123542.GB12217@hirez.programming.kicks-ass.net> References: <0efb5547-9250-6b6c-fe8e-cf4f44aaa5eb@netapp.com> <20180514191551.GA27939@bombadil.infradead.org> <7ec6fa37-8529-183d-d467-df3642bcbfd2@netapp.com> <20180515004137.GA5168@bombadil.infradead.org> <20180515120750.lro2qbskw5cptc5o@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180515120750.lro2qbskw5cptc5o@lakrids.cambridge.arm.com> Sender: owner-linux-mm@kvack.org List-ID: On Tue, May 15, 2018 at 01:07:51PM +0100, Mark Rutland wrote: > // speculatively allocates TLB Ohh, right, I completely forgot about that, but that actually does happen. We had trouble with AMD doing just that only about a year ago or so IIRC. CPUs are completely free to speculatively load TLB entries for pages they never actually end up touching (typically prefetcher based), as long as there's valid page-tables for them at the time. So yes, you're right.