Skip to content

Midterm 2 Practice Exam, Problem 2: Virtual Memory

Midterm 2 practice exam, problem 2 of 6 · Length: 7:59 · Exercise: 39k_virtual_memory (Week 10) · Problems: Practice exam (PDF) · Answer key: Solutions (PDF)

Three parts, worked on the exam's pages 5 and 6: (a) the value make_satp returns for a root page table at 0x87ffd000, and what its MODE and PPN fields hold; (b) two addresses translated through kvmmake's table, index by index, to a physical address or a page fault; (c) what happens right after satp is written when RAM is mapped without PTE_X. The answer key's handwriting is written onto the exam page as each step is worked.

Download the video (MP4, 12 MB) · Captions (WebVTT) · All six problems