mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:30:53 +07:00
xen: add page_to_mfn()
pfn_to_mfn(page_to_pfn(p)) is a common use case so add a generic helper for it. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
933685cacb
commit
28e98c2c20
@ -3,6 +3,11 @@
|
||||
|
||||
#include <asm/xen/page.h>
|
||||
|
||||
static inline unsigned long page_to_mfn(struct page *page)
|
||||
{
|
||||
return pfn_to_mfn(page_to_pfn(page));
|
||||
}
|
||||
|
||||
struct xen_memory_region {
|
||||
phys_addr_t start;
|
||||
phys_addr_t size;
|
||||
|
Loading…
Reference in New Issue
Block a user