From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757576AbYEaAPv (ORCPT ); Fri, 30 May 2008 20:15:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757123AbYEaAOn (ORCPT ); Fri, 30 May 2008 20:14:43 -0400 Received: from gw.goop.org ([64.81.55.164]:41358 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757071AbYEaAOm (ORCPT ); Fri, 30 May 2008 20:14:42 -0400 Message-ID: <48409847.4000902@goop.org> Date: Sat, 31 May 2008 01:13:59 +0100 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Zachary Amsden CC: Ingo Molnar , LKML , xen-devel , Thomas Gleixner , Hugh Dickins , kvm-devel , Virtualization Mailing List , Rusty Russell , Peter Zijlstra , Linus Torvalds Subject: Re: [PATCH 0 of 4] mm+paravirt+xen: add pte read-modify-write abstraction References: <1211567273.7465.36.camel@bodhitayantram.eng.vmware.com> <483729E7.9010002@goop.org> <1211585122.7465.70.camel@bodhitayantram.eng.vmware.com> In-Reply-To: <1211585122.7465.70.camel@bodhitayantram.eng.vmware.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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