]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
XXX debug for PMAP, remove after done per-cpu-domain-map
authorWei Liu <wei.liu2@citrix.com>
Mon, 14 Jan 2019 16:15:58 +0000 (16:15 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 21 Jan 2019 15:34:00 +0000 (15:34 +0000)
xen/arch/x86/pmap.c

index 4ae16b021277884ffbbd04f223ef9cbfa74210fd..8a78455cfd671d945254db795b2cbc0b3d68717d 100644 (file)
@@ -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)