OS & Hardware
In virtualization with nested paging (two-stage address translation), which describes what the hardware does?
- AIt walks only the guest OS's page tables and does not use the hypervisor's tables
- BIt translates guest virtual → guest physical → host physical
- CThe hypervisor intercepts every memory access and translates each one in software
Show answer and explanation
Answer: B. It translates guest virtual → guest physical → host physical
A guest OS believes its physical addresses (guest physical addresses) are real memory, but the memory actually lives elsewhere as assigned by the hypervisor. With nested paging, hardware translates through the guest's page tables to a guest physical address and then through the hypervisor's tables to a host physical address. The hypervisor no longer needs to intervene every time the guest edits its page tables. Translating every access in software would be far too slow.
- A. The hypervisor's tables are used too, in a two-stage translation.
- B. Correct. Guest virtual → guest physical → host physical, in two stages.
- C. Translating everything in software would be far too slow.