From: Keir Fraser Subject: Re: WP flag in CR0, setting Date: Mon, 3 Jul 2006 14:22:57 +0100 Message-ID: <5f23b840df26a558bd1d75a834196994@cl.cam.ac.uk> References: <87y7vzoq6e.wl%simon.kagstrom@bth.se> <87zmge26i3.wl%simon.kagstrom@bth.se> <3dd5d4765477cda81c13b785f0722100@cl.cam.ac.uk> <87fyhioqkt.wl%simon.kagstrom@bth.se> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87fyhioqkt.wl%simon.kagstrom@bth.se> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Kagstrom Cc: xen-devel list List-Id: xen-devel@lists.xenproject.org On 3 Jul 2006, at 12:50, Simon Kagstrom wrote: > Causes an assertion to trigger when booting the Linux dom0: > > (XEN) Assertion '(x & PGT_count_mask) != 0' failed, line 1430, file > mm.c > > Is this due to how Xen works or is it because Linux uses writable page > tables (I have not checked the Linux sources other than the > __xen_guest_section). This occurs because the pagetable protection no longer works. When Linux writes directly to a pagetable it succeeds rather than trapping into Xen where appropriate reference counting and validation would occur. -- Keir