All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][VT] Use entry_get_paddr(l1e) to get the PFN
@ 2005-08-31 22:24 Arun Sharma
  0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2005-08-31 22:24 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

Use entry_get_paddr(l1e) to get the PFN

Otherwise software used bits might get in the way.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>

--- a/xen/include/asm-x86/shadow_64.h	Wed Aug 31 14:53:43 2005
+++ b/xen/include/asm-x86/shadow_64.h	Wed Aug 31 15:03:09 2005
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-31 22:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-31 22:24 [PATCH][VT] Use entry_get_paddr(l1e) to get the PFN Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.