From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH 0 of 4] mm+paravirt+xen: add pte read-modify-write abstraction Date: Sat, 31 May 2008 01:13:59 +0100 Message-ID: <48409847.4000902@goop.org> References: <1211567273.7465.36.camel@bodhitayantram.eng.vmware.com> <483729E7.9010002@goop.org> <1211585122.7465.70.camel@bodhitayantram.eng.vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1211585122.7465.70.camel@bodhitayantram.eng.vmware.com> Sender: linux-kernel-owner@vger.kernel.org To: Zachary Amsden Cc: Ingo Molnar , LKML , xen-devel , Thomas Gleixner , Hugh Dickins , kvm-devel , Virtualization Mailing List , Rusty Russell , Peter Zijlstra , Linus Torvalds List-Id: virtualization@lists.linuxfoundation.org Zachary Amsden wrote: > We don't fault. We write directly to the primary page tables, and clear > the pte just like native. We just issue all mprotect updates in the > queue, and flush the queue when leaving lazy mmu mode. You can't wait > for the TLB flush, you must flush the updates before releasing the > pagetable lock, or you could get misordered updates in an SMP system. > How do you track which ptes need shadow updates? Do you walk the entire pagetable on tlb flush? Or just rebuild the shadow from scratch on demand? J