[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Use entry_get_paddr(l1e) to get the PFN
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 832cb25d1f554b5d8d173bb6647e6a109a47173b # Parent b99098e3c2ed38c897242cb505fb1e171bb9435b 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@xxxxxxxxx> diff -r b99098e3c2ed -r 832cb25d1f55 xen/include/asm-x86/shadow_64.h --- a/xen/include/asm-x86/shadow_64.h Thu Sep 1 09:04:06 2005 +++ b/xen/include/asm-x86/shadow_64.h Thu Sep 1 09:07:10 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |