lkml.org 
[lkml]   [2017]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/3] x86/mm: expose track_pfn_insert()
Date
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
\
 
 \ /
  Last update: 2017-10-27 04:26    [W:0.054 / U:10.880 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site