Aug. 5, 2014
11:19 a.m.
Hello, I am trying to understand the page fault handling and MMU. These are my queries 1) What is the exact difference between the protection flags in vm_area_struct and pte's protection flags of the page. Does the field "pgprot_t vm_page_prot" in vm_area_struct contain the protection flags of all the pages in that vm_area? If so how to set these for individual pages? I have come across this http://marc.info/?l=linux-mm&m=109422600806490 But could not find any answer to this post. 2) Does MMU (x86 arch) check the vm_area prot flags or the page's pte flags to cause the page fault? Please help !! Thanks, Ravali