User writes to memory location
That portion (page) of user’s memory is currently on disk
iret
) instruction
ret
, but also restores privilege levelVirtual memory seems terribly inefficient, but it works because of locality
execve
allocated virtual pages for .text
and .data
sections and creates PTEs marked as invalid.text
and .data
sections are copied, page by page, on demand by the virtual memory systemCommon solution: multi-level page table