Skip to contentSkip to conversation

Use entry_get_paddr(l1e) to get the PFN

PATCH New Arun Sharma 1 participant 1 message Aug 31, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use entry_get_paddr(l1e) to get the PFN

Use entry_get_paddr(l1e) to get the PFN

Otherwise software used bits might get in the way.

xen/include/asm-x86/shadow_64.h +3 -1
@@ -450,7 +450,9 @@
 	/*
 	 * If it's not external mode, then mfn should be machine physical.
 	 */
-	mfn = __gpfn_to_mfn(d, (entry_get_value(gle) >> PAGE_SHIFT));
+	mfn = __gpfn_to_mfn(d, (entry_get_paddr(gle) >> PAGE_SHIFT));
+        if (mfn == -1)
+            return 1;
 
         lva = (pgentry_64_t *) phys_to_virt(
 	    mfn << PAGE_SHIFT);