Arun Sharma
2005-Aug-31 22:24 UTC
[Xen-devel] [PATCH][VT] 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. 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); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel