Lines Matching refs:sptep

35 typedef void (*inspect_spte_fn) (struct kvm_vcpu *vcpu, u64 *sptep, int level);
96 static void audit_mappings(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_mappings() argument
103 sp = page_header(__pa(sptep)); in audit_mappings()
113 if (!is_shadow_present_pte(*sptep) || !is_last_spte(*sptep, level)) in audit_mappings()
116 gfn = kvm_mmu_page_get_gfn(sp, sptep - sp->spt); in audit_mappings()
123 if ((*sptep & PT64_BASE_ADDR_MASK) != hpa) in audit_mappings()
126 hpa, *sptep); in audit_mappings()
129 static void inspect_spte_has_rmap(struct kvm *kvm, u64 *sptep) in inspect_spte_has_rmap() argument
136 rev_sp = page_header(__pa(sptep)); in inspect_spte_has_rmap()
137 gfn = kvm_mmu_page_get_gfn(rev_sp, sptep - rev_sp->spt); in inspect_spte_has_rmap()
144 (long int)(sptep - rev_sp->spt), rev_sp->gfn); in inspect_spte_has_rmap()
154 *sptep); in inspect_spte_has_rmap()
159 static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_sptes_have_rmaps() argument
161 if (is_shadow_present_pte(*sptep) && is_last_spte(*sptep, level)) in audit_sptes_have_rmaps()
162 inspect_spte_has_rmap(vcpu->kvm, sptep); in audit_sptes_have_rmaps()
165 static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte_after_sync() argument
167 struct kvm_mmu_page *sp = page_header(__pa(sptep)); in audit_spte_after_sync()
192 u64 *sptep; in audit_write_protection() local
200 for (sptep = rmap_get_first(*rmapp, &iter); sptep; in audit_write_protection()
201 sptep = rmap_get_next(&iter)) { in audit_write_protection()
202 if (is_writable_pte(*sptep)) in audit_write_protection()
220 static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte() argument
222 audit_sptes_have_rmaps(vcpu, sptep, level); in audit_spte()
223 audit_mappings(vcpu, sptep, level); in audit_spte()
224 audit_spte_after_sync(vcpu, sptep, level); in audit_spte()