[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171027022524.22589-2-haozhong.zhang@intel.com>
Date: Fri, 27 Oct 2017 10:25:22 +0800
From: Haozhong Zhang <haozhong.zhang@...el.com>
To: kvm@...r.kernel.org, x86@...nel.org
Cc: linux-kernel@...r.kernel.org, Paolo Bonzini <pbonzini@...hat.com>,
rkrcmar@...hat.com, Xiao Guangrong <xiaoguangrong.eric@...il.com>,
Dan Williams <dan.j.williams@...el.com>,
ivan.d.cuevas.escareno@...el.com, karthik.kumar@...el.com,
Haozhong Zhang <haozhong.zhang@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, Borislav Petkov <bp@...e.de>,
Tom Lendacky <thomas.lendacky@....com>,
Mikulas Patocka <mpatocka@...hat.com>
Subject: [PATCH 1/3] x86/mm: expose track_pfn_insert()
KVM MMU will use it to get the cache mode of the host pfn.
Signed-off-by: Haozhong Zhang <haozhong.zhang@...el.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
Powered by blists - more mailing lists