From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gorm Hansen Subject: Re: Tracking changes to writable page tables Date: Sun, 15 May 2005 00:08:58 -0700 Message-ID: <4286F58A.6070205@diku.dk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Ian Pratt wrote: >>It looks like xenlinux 2.6 now uses writable page tables by >>default (I can't find the switch to enable/disable them). >> >>I need to track writes to page tables, and I was wondering if >>it is possible to get a page fault upon writes to read-only >>mapped page tables, as when writing to other read-only mappings? > > > Hmm, I can see that the current model makes like difficult for you > (though self-migration is a pretty twisted thing to be trying to do > anyway :-) > Hmm while we are discussing twisted things; would it be possible to implement writable page tables in the guest rather than in Xen? The guest would then take the fault, unpin and decouple the page table from the page directory, change the protection, and do the reverse when the page table is next used. I suppose that would be a (somewhat radical) solution to my problem. Jacob