<div dir="ltr"><div>Hello,</div><div><br></div><div>I am trying to understand the page fault handling and MMU. These are my queries</div><div><br></div><div>1) What is the exact difference between the protection flags in vm_area_struct and pte's protection flags of the page.</div>
<div><span style="color:rgb(0,0,0)">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?</span><br>
</div><div><br></div>I have come across thisĀ <a href="http://marc.info/?l=linux-mm&m=109422600806490">http://marc.info/?l=linux-mm&m=109422600806490</a><div>But could not find any answer to this post.</div><div><br>
</div><div>2) Does MMU (x86 arch) check the vm_area prot flags or the page's pte flags to cause the page fault?</div><div><br></div><div>Please help !!</div><div><br></div><div>Thanks,</div><div>Ravali</div></div>