From: Wei Liu Date: Mon, 14 Jan 2019 16:15:58 +0000 (+0000) Subject: XXX debug for PMAP, remove after done X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fper-cpu-domain-map;p=people%2Fliuw%2Fxen.git XXX debug for PMAP, remove after done --- diff --git a/xen/arch/x86/pmap.c b/xen/arch/x86/pmap.c index 4ae16b0212..8a78455cfd 100644 --- a/xen/arch/x86/pmap.c +++ b/xen/arch/x86/pmap.c @@ -50,6 +50,9 @@ void *pmap_map(struct page_info *page) set_fixmap(slot, mfn_x(page_to_mfn(page))); linear = (void *)__fix_to_virt(slot); + printk(" XXX mapping %"PRI_mfn" to %p with idx %u\n", + mfn_x(page_to_mfn(page)), linear, idx); + return linear; } @@ -65,6 +68,8 @@ void pmap_unmap(void *p) idx = slot - FIX_PMAP_BEGIN; __clear_bit(idx, &inuse); clear_fixmap(slot); + + printk(" XXX unmapping %p with idx %u\n", p, idx); } static void __maybe_unused build_assertions(void)