之前通过影子页表来处理虚拟机内存到物理内存的转换,现在用EPT
EPT: Extended Page Tables
VMM needs to retain control of physical-address space
page-table virtulization in software is a major source of overhead(namely soft MMU, or shaddow
page table ...)
EPT
- new CPU mechanism for remapping guest-physical memory references
- allow guest to retain control of legacy Intel 64 paging
- Reduce fequency of VM exits to VMM
CR3 EPT Base Pointer
| |
| _______ |
`--> |Guest | |---------|
|Intel64| Guest Physical Addr | Extended| Host Physical Address
Guest Linear Addr -> |Page | ------------------------> | Page | ------------------------
|Tables | | Tables |
|_______| |---------|
\ \
\ \
`controled by Guest `controled by VMM
EPT optionally activated on VM entry
- when EPT active, EPT base pointer points to extended page tables
- EPT deactivated on VM exit
Reference:
[1] Intel Virtualization Technology Processor Virtualization Extensions and Intel Trusted
execution Technology