From: Paolo Bonzini Subject: Re: [PATCH] mm: Speed up mremap on large regions Date: Fri, 12 Oct 2018 09:24:32 +0200 Message-ID: <927d98c0-ec81-ce7a-994d-6405abce18db@redhat.com> References: <20181009201400.168705-1-joel@joelfernandes.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kernel list , Linux-MM , kernel-team@android.com, Minchan Kim , Hugh Dickins , lokeshgidra@google.com, Andrew Morton , Greg Kroah-Hartman , Kate Stewart , pombredanne@nexb.com, Thomas Gleixner , Boris Ostrovsky , Juergen Gross , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org To: Jann Horn , joel@joelfernandes.org Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 12/10/2018 05:21, Jann Horn wrote: > I don't know how this interacts with shadow paging implementations. Shadow paging simply uses MMU notifiers and that does not assume that PTE invalidation is atomic. The invalidate_range_start and invalidate_range_end calls are not affected by Joel's patch, so it's ok for KVM and also for other users of MMU notifiers. Paolo