From: Keir Fraser Subject: Re: XENFEAT_writable_pagetables vs VMASST_TYPE_writable_pagetables Date: Thu, 1 Jun 2006 08:43:06 +0100 Message-ID: <409e4944015efc10f5068a13f3d125df@cl.cam.ac.uk> References: <8e5c0a72f56dc3168831c47cbbf0a216@cl.cam.ac.uk> <0575028a60acc51ed3711e1be664f62b@cl.cam.ac.uk> <2fa2245a8dcd271bedf578ff29b5681d@cl.cam.ac.uk> 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: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 1 Jun 2006, at 08:42, Jacob Gorm Hansen wrote: >> This doesn't look like the result of a pmd_clear() call. Looks like a >> L2 (pgd) is being allocated -- perhaps due to pinning or changing >> %cr3. >> It's failing because one of the L1 pages it references is writable by >> the guest (ie. the guest has a writable mapping of that L1 page >> somewhere). > > Hmm it _does_ happen on pmd_clear (which is a macro that turns into a > xen mmu update call). The funny thing is how giving val=0 can end up > as an alloc_l2_page. Ah, ok I see the path. I need to fix up the logic in the mmu_update hypercall a little. -- Keir