From: "Mike Sun" Subject: Re: Re: Making pages writable again in paging_log_dirty mode Date: Sat, 3 Jan 2009 22:55:00 -0500 Message-ID: References: <20090102100725.GB12729@york.uk.xensource.com> <20090102172058.GC12729@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > Thanks Tim. It make sense that I may accidentally calling > get_page_and_type() once too often. I modified the condition in which > I manually call an extra get_page_and_type() when trying to make PTEs > writable from dom0, but now I get this error condition: > > (XEN) sh error: sh_remove_shadows(): can't find all shadows of mfn > 02673 (shadow_flags=00000008) Okay, it turned out to be trickier than I thought to manually call a get_page_and_type(). Seems like I missed a few conditions checks still. I ended up wrapping the get_page_from_l1e and higher functions with another parameter that lets me bypass the external domain mappings not counting code. Thanks for the help! Mike