From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trammell Hudson Subject: Re: Page fault on mapped pages with reserved bits set Date: Wed, 20 Jun 2007 18:23:00 -0400 Message-ID: <20070620222300.GG13971@osresearch.net> References: <20070620215910.GE13971@osresearch.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Jun 20, 2007 at 11:10:14PM +0100, Keir Fraser wrote: > 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. Super! That was it. The kernel was originally written for a CPU and system that allowed the ring 0 code to write to memory, even if it was flagged as non-writable. Moving it into ring 3 has been problematic in other areas, too, so it isn't booting all the way yet, but is making much quicker progress now! -- Trammell