From: "Mike Sun" Subject: Intercepting pf type changes Date: Tue, 21 Oct 2008 18:05:34 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi all, The log-dirty mechanism allows me to figure out where in the code (i.e. paging_mark_dirty()) guest pages are written to. I'm curious if there's a clean way for me to intercept or locate when an HVM guest's pages may have their type changed in Xen, e.g. from a normal page to a pagetable page or from an invalid page to a normal page. Also, I was trying to use the xc_get_pfn_type_batch() hypercall to get the page types for a set of pfns for an HVM domain, but am having problems. Is this hypercall only for use with mfns? I was hoping it worked the same way xc_map_foreign_batch() does, mfns for PV guests and pfns for HVM guests. Thanks, Mike