Midterm 2, Section 02, Problem 2: The Kernel Page Table¶
Midterm 2, Section 02, problem 2 of 5 · Length: 14:18 · Exercise: 39k_virtual_memory (Week 10) · Exam: Section 02 (PDF) · Answer key: Solutions (PDF)
Four parts, worked on pages 4 and 5: (a) the value make_satp returns for the root page table, with the work shown, and why >> 12 loses nothing; (b) five virtual addresses translated through kvmmake's table, index by index, to a physical address or a page fault, in a table; (c) two more device mappings: their indexes, and whether walk allocates a new level-1 or level-0 table; (d) a kvmmake that maps all of RAM without PTE_W: the flags in a leaf entry, and what happens next. The answer key's handwriting is written onto the exam page as each step is worked.
Download the video (MP4, 35 MB) · Captions (WebVTT) · All five problems