Xen配置文件中hap选项
hap=0:虚拟机使用影子模式
hap=1:虚拟机使用EPT模式
HAP stands for hardware assisted paging and requires a CPU feature called EPT by Intel and RVI by AMD. It is used to manage the guest’s MMU. The alternative is shadow paging, completely managed in software by Xen. On HAP TLB misses are expensive so if you have really random access, HAP will be expensive. On shadow page table updates are expensive. HAP is enabled by default (and it is the recommended setting) but can be disabled passing hap=0 in the VM config file.
这个选项主要是选择影子页表模式还是EPT模式。
本人主要使用了这两种在处理虚拟机缺页处理时的不同。
本人的使用环境需要虚拟客户机产生缺页异常时执行VMExit进入到Hypervisor层,因此需要使用影子页表模式。
本文探讨了Xen配置文件中的hap选项,解析了虚拟机使用影子模式与EPT模式的区别。重点介绍了在不同访问模式下,HAP与影子页表在处理虚拟机缺页异常时的机制,以及英特尔EPT机制的深入分析。
4214

被折叠的 条评论
为什么被折叠?



