x86: PAT: implement track/untrack of pfnmap regions for x86 - v3
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Thu, 18 Dec 2008 19:41:30 +0000 (11:41 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 18 Dec 2008 21:30:16 +0000 (13:30 -0800)
commit5899329b19100c0b82dc78e9b21ed8b920c9ffb3
treeb4601266a9298f119fcf4432492fc0de6a48ca09
parent2ab640379a0ab4cef746ced1d7e04a0941774bcb
x86: PAT: implement track/untrack of pfnmap regions for x86 - v3

Impact: New mm functionality.

Hookup remap_pfn_range and vm_insert_pfn and corresponding copy and free
routines with reserve and free tracking.

reserve and free here only takes care of non RAM region mapping. For RAM
region, driver should use set_memory_[uc|wc|wb] to set the cache type and
then setup the mapping for user pte. We can bypass below
reserve/free in that case.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/pgtable.h
arch/x86/mm/pat.c