Messages in this thread Patch in this message | | | From | Haozhong Zhang <> | Subject | [PATCH 1/3] x86/mm: expose track_pfn_insert() | Date | Fri, 27 Oct 2017 10:25:22 +0800 |
| |
KVM MMU will use it to get the cache mode of the host pfn.
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com> --- 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
| |