[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Page fault on mapped pages with reserved bits set


  • To: Trammell Hudson <hudson@xxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • Date: Wed, 20 Jun 2007 23:10:14 +0100
  • Delivery-date: Wed, 20 Jun 2007 15:05:45 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acezh8bDBVhndB97EdyVpQAWy6hiGQ==
  • Thread-topic: [Xen-devel] Page fault on mapped pages with reserved bits set

On 20/6/07 22:59, "Trammell Hudson" <hudson@xxxxxxxxxxxxxx> 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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.