Lines Matching refs:parent_pte
1053 u64 *parent_pte, int direct) in kvm_mmu_alloc_page() argument
1066 sp->parent_pte = parent_pte; in kvm_mmu_alloc_page()
1072 struct kvm_mmu_page *sp, u64 *parent_pte) in mmu_page_add_parent_pte() argument
1078 if (!parent_pte) in mmu_page_add_parent_pte()
1081 u64 *old = sp->parent_pte; in mmu_page_add_parent_pte()
1084 sp->parent_pte = parent_pte; in mmu_page_add_parent_pte()
1098 pte_chain->parent_ptes[i] = parent_pte; in mmu_page_add_parent_pte()
1105 pte_chain->parent_ptes[0] = parent_pte; in mmu_page_add_parent_pte()
1109 u64 *parent_pte) in mmu_page_remove_parent_pte() argument
1116 BUG_ON(sp->parent_pte != parent_pte); in mmu_page_remove_parent_pte()
1117 sp->parent_pte = NULL; in mmu_page_remove_parent_pte()
1124 if (pte_chain->parent_ptes[i] != parent_pte) in mmu_page_remove_parent_pte()
1138 sp->parent_pte = NULL; in mmu_page_remove_parent_pte()
1153 if (!sp->multimapped && sp->parent_pte) { in mmu_parent_walk()
1154 parent_sp = page_header(__pa(sp->parent_pte)); in mmu_parent_walk()
1155 fn(parent_sp, sp->parent_pte); in mmu_parent_walk()
1484 u64 *parent_pte) in kvm_mmu_get_page() argument
1514 mmu_page_add_parent_pte(vcpu, sp, parent_pte); in kvm_mmu_get_page()
1525 sp = kvm_mmu_alloc_page(vcpu, parent_pte, direct); in kvm_mmu_get_page()
1659 static void kvm_mmu_put_page(struct kvm_mmu_page *sp, u64 *parent_pte) in kvm_mmu_put_page() argument
1661 mmu_page_remove_parent_pte(sp, parent_pte); in kvm_mmu_put_page()
1675 u64 *parent_pte; in kvm_mmu_unlink_parents() local
1677 while (sp->multimapped || sp->parent_pte) { in kvm_mmu_unlink_parents()
1679 parent_pte = sp->parent_pte; in kvm_mmu_unlink_parents()
1685 parent_pte = chain->parent_ptes[0]; in kvm_mmu_unlink_parents()
1687 BUG_ON(!parent_pte); in kvm_mmu_unlink_parents()
1688 kvm_mmu_put_page(sp, parent_pte); in kvm_mmu_unlink_parents()
1689 __set_spte(parent_pte, shadow_trap_nonpresent_pte); in kvm_mmu_unlink_parents()