From: Keir Fraser Subject: Re: Writable page tables Date: Fri, 7 Apr 2006 08:17:15 +0100 Message-ID: <2eae81c7c06e6c1ff0c434d9813a79e6@cl.cam.ac.uk> References: <4435204C0200003000013144@sinclair.provo.novell.com> <443538DB0200003000013164@sinclair.provo.novell.com> <443554F3.E57C.0030.0@novell.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <443554F3.E57C.0030.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ky Srinivasan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 6 Apr 2006, at 22:50, Ky Srinivasan wrote: > I have a question with regards to writable page table support. I am > able > to modify a page table entry via the hypercall interface > (xen_l1_entry_update). However, if I enable the writable page table > feature, the hypervisor fails to fix up the write fault on the same > page > table. The fixup fails in ptwr_do_page_fault() - the problem appears to > be with the TYPE_COUNT (it is 0 and all other checks pass). Why is the > writable code path more restrictive, given that the modifications done > via the writable path will be validated by the hypervisor before > hooking > in the page table under question. Since the validation is deferred, I > was expecting this path would have fewer checks. Have you write protected the page but not yet pinned it as a pagetable page, nor hooked it into an existing pagetable? -- Keir