[PATCH 1/3] x86/mm: expose track_pfn_insert()

From: Haozhong Zhang
Date: Thu Oct 26 2017 - 22:26:13 EST


KVM MMU will use it to get the cache mode of the host pfn.

Signed-off-by: Haozhong Zhang <haozhong.zhang@xxxxxxxxx>
---
arch/x86/mm/pat.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index fe7d57a8fb60..cab593ea8956 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -998,6 +998,7 @@ void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, pfn_t pfn)
*prot = __pgprot((pgprot_val(*prot) & (~_PAGE_CACHE_MASK)) |
cachemode2protval(pcm));
}
+EXPORT_SYMBOL_GPL(track_pfn_insert);

/*
* untrack_pfn is called while unmapping a pfnmap for a region.
--
2.14.1