Intercepting pf type changes
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