From: Simon Kagstrom Subject: Re: WP flag in CR0, setting Date: Thu, 15 Jun 2006 10:00:20 +0200 Message-ID: <87zmge26i3.wl%simon.kagstrom@bth.se> References: <87y7vzoq6e.wl%simon.kagstrom@bth.se> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII 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: Keir Fraser Cc: xen-devel list List-Id: xen-devel@lists.xenproject.org At Wed, 14 Jun 2006 14:00:16 +0100, Keir Fraser wrote: > On 14 Jun 2006, at 13:52, Simon Kagstrom wrote: > > > I have a slight problem in my guest port with the WP bit in CR0. The > > original kernel maps certain kernel pages to user-mode read-only and > > relies on the kernel being able to modify these despite the read-only > > bit being set in the pages. This in turn requires that the WP bit is > > unset in CR0. > > We can't support this. We rely on write protection for all sorts of > things (e.g., prevent guest write access to page tables). You'll have > to temporarily make the mapping writable, or make a kernel-private > writable mapping. Thanks for the explanation. Would the WP flag work in a HVM setting? // Simon