Skip to content

Commit

Permalink
Xen: Add virt_to_pfn helper function
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
  • Loading branch information
Alex Nixon authored and Jeremy Fitzhardinge committed Mar 30, 2009
1 parent 68509cd commit 1e74497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/include/asm/xen/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ static inline unsigned long mfn_to_local_pfn(unsigned long mfn)

/* VIRT <-> MACHINE conversion */
#define virt_to_machine(v) (phys_to_machine(XPADDR(__pa(v))))
#define virt_to_mfn(v) (pfn_to_mfn(PFN_DOWN(__pa(v))))
#define virt_to_pfn(v) (PFN_DOWN(__pa(v)))
#define virt_to_mfn(v) (pfn_to_mfn(virt_to_pfn(v)))
#define mfn_to_virt(m) (__va(mfn_to_pfn(m) << PAGE_SHIFT))

static inline unsigned long pte_mfn(pte_t pte)
Expand Down

0 comments on commit 1e74497

Please sign in to comment.