From: Keir Fraser Subject: Re: Page fault on mapped pages with reserved bits set Date: Wed, 20 Jun 2007 23:10:14 +0100 Message-ID: References: <20070620215910.GE13971@osresearch.net> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070620215910.GE13971@osresearch.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Trammell Hudson , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 20/6/07 22:59, "Trammell Hudson" wrote: > I can't handle the page fault, since my kernel's page fault routine > faults if it tries to do anything that writes to memory, such as > push a return address on the stack. To generate the error message > above I had to disable my kernel's trap table to let Xen handle it. > Otherwise the fault address is in my handler rather than in the > instruction after setting MMUEXT_BASE_PTR. > > Any suggestions on things to try? It's a protection violation on a write, because none of your page directory entries have bit 1 (_PAGE_RW) set. That bit gets ANDed down the entire page walk, so it needs to be set at every level for the page to actually be writable. -- Keir