Hardware interview practice
Handle a valid demand-page fault
A load references a valid virtual address whose page is not resident but may be brought into memory. Which high-level sequence is correct?
Choose one
Answer choices
- A. Flush only the data cache and retry with the same missing translation.
- B. Continue the load using the virtual address as a physical address.
- C. Trap to the OS, validate access, allocate or find a frame and load the page, update translation state, then restart the faulting instruction.
- D. Trap to the OS, skip the faulting instruction, and leave the page table unchanged.
