From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 0/4] Swapping Date: Tue, 16 Oct 2007 22:01:14 +0200 Message-ID: <4715188A.2010706@qumranet.com> References: <47102823.2000600@qumranet.com> <4713ACF8.6010809@codemonkey.ws> <4713AF9C.8000609@qumranet.com> <4713B97F.7090403@codemonkey.ws> <4713BCA4.3080103@qumranet.com> <4713BFB3.8060701@codemonkey.ws> <4713C46E.9020107@qumranet.com> <4713C7A3.4050805@codemonkey.ws> <471485E2.8090301@qumranet.com> <47150325.3070009@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Anthony Liguori Return-path: In-Reply-To: <47150325.3070009-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Anthony Liguori wrote: >>> What I don't understand, is how we can have something like >>> mmu_unshadow() called automatically when an mmap() is initiated from >>> userspace. We could just add an ioctl() to do it from userspace but >>> I think it would be nicer if it Just Worked. >>> >> >> Behold the magic of pte notifiers! Every time the host touches a >> host page table entry, it calls kvm which zaps the corresponding >> shadow pte entries and invalidates any tlb entries in running vcpus. > > /me bows down to the greatness of pte notifiers > > So yeah, that would solve the problem nicely. Are you planning on > resubmitting those patches or did they end up in Linus' tree? There's a lot of work before pte notifers are linusable. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/