缺页触发:
hvm_hap_nested_page_fault→gfn_to_mfn_type_current→ept_get_entry_current→ept_get_entry
虚拟机启动时:
setup_guest
→xc_memory_op→do_memory_op→populate_physmap→guest_physmap_mark_populate_on_demand
→xc_domain_memory_set_pod_target →p2m_pod_set_mem_target→p2m_pod_set_cache_target
虚拟机使用内存时:
vmx_vmexit_handler→ept_handle_violation→hvm_hap_nested_page_fault→gfn_to_mfn_type_current→ept_get_entry_current→ept_pod_check_and_populate→p2m_pod_demand_populate
→p2m_pod_emergency_sweep→p2m_pod_zero_check→p2m_pod_cache_add
→p2m_pod_cache_get
关闭虚拟机时:
xc_domain_destroy→do_domctl→domain_kill→domain_relinquish_resources→paging_teardown→p2m_pod_empty_cache