Virtual Machines and Privileged Operation Traps
Explain how a hypervisor manages guest state and separate guest address translation from host protection.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A guest operates on a virtual machine contract
A guest kernel expects to control processors, memory mappings and devices. Hardware virtualization lets many ordinary instructions execute on the CPU while selected privileged transitions can exit to the hypervisor. The hypervisor interprets such an event in the context of the guest’s virtual state, then updates or rejects the requested operation under the platform’s rules. Virtual devices may use emulated or explicitly shared interfaces.
Two mappings can stand between a guest address and memory
A guest page table can translate guest virtual addresses to guest physical addresses. A second translation controlled outside the guest maps those addresses to permitted machine frames. Hardware can cache combined translation results. This keeps one guest’s address choices separate from which frames the host grants. Page table structure explains a single walk. TLB locality explains why translation caching matters during such execution.[1]