[PATCH v3 3/7] mm: Add vm_insert_pfn_prot

2015-12-29 Thread Andy Lutomirski
The x86 vvar vma conntains pages with differing cacheability flags. x86 currently implements this by manually inserting all the ptes using (io_)remap_pfn_range when the vma is set up. x86 wants to move to using .fault with VM_FAULT_NOPAGE to set up the mappings as needed. The correct API to use

[PATCH v3 3/7] mm: Add vm_insert_pfn_prot

2015-12-29 Thread Andy Lutomirski
The x86 vvar vma conntains pages with differing cacheability flags. x86 currently implements this by manually inserting all the ptes using (io_)remap_pfn_range when the vma is set up. x86 wants to move to using .fault with VM_FAULT_NOPAGE to set up the mappings as needed. The correct API to use