Use entry_get_paddr(l1e) to get the PFN
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.
Signed-off-by Arun Sharma <[email protected]>
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 );