Lines Matching refs:sptep

32 typedef void (*inspect_spte_fn) (struct kvm_vcpu *vcpu, u64 *sptep, int level);
93 static void audit_mappings(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_mappings() argument
100 sp = page_header(__pa(sptep)); in audit_mappings()
110 if (!is_shadow_present_pte(*sptep) || !is_last_spte(*sptep, level)) in audit_mappings()
113 gfn = kvm_mmu_page_get_gfn(sp, sptep - sp->spt); in audit_mappings()
120 if ((*sptep & PT64_BASE_ADDR_MASK) != hpa) in audit_mappings()
123 hpa, *sptep); in audit_mappings()
126 static void inspect_spte_has_rmap(struct kvm *kvm, u64 *sptep) in inspect_spte_has_rmap() argument
135 rev_sp = page_header(__pa(sptep)); in inspect_spte_has_rmap()
136 gfn = kvm_mmu_page_get_gfn(rev_sp, sptep - rev_sp->spt); in inspect_spte_has_rmap()
145 (long int)(sptep - rev_sp->spt), rev_sp->gfn); in inspect_spte_has_rmap()
155 *sptep); in inspect_spte_has_rmap()
160 static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_sptes_have_rmaps() argument
162 if (is_shadow_present_pte(*sptep) && is_last_spte(*sptep, level)) in audit_sptes_have_rmaps()
163 inspect_spte_has_rmap(vcpu->kvm, sptep); in audit_sptes_have_rmaps()
166 static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte_after_sync() argument
168 struct kvm_mmu_page *sp = page_header(__pa(sptep)); in audit_spte_after_sync()
193 u64 *sptep; in audit_write_protection() local
205 for_each_rmap_spte(rmap_head, &iter, sptep) { in audit_write_protection()
206 if (is_writable_pte(*sptep)) in audit_write_protection()
224 static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte() argument
226 audit_sptes_have_rmaps(vcpu, sptep, level); in audit_spte()
227 audit_mappings(vcpu, sptep, level); in audit_spte()
228 audit_spte_after_sync(vcpu, sptep, level); in audit_spte()