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
138 rev_sp = page_header(__pa(sptep)); in inspect_spte_has_rmap()
139 gfn = kvm_mmu_page_get_gfn(rev_sp, sptep - rev_sp->spt); in inspect_spte_has_rmap()
148 (long int)(sptep - rev_sp->spt), rev_sp->gfn); in inspect_spte_has_rmap()
158 *sptep); in inspect_spte_has_rmap()
163 static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_sptes_have_rmaps() argument
165 if (is_shadow_present_pte(*sptep) && is_last_spte(*sptep, level)) in audit_sptes_have_rmaps()
166 inspect_spte_has_rmap(vcpu->kvm, sptep); in audit_sptes_have_rmaps()
169 static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte_after_sync() argument
171 struct kvm_mmu_page *sp = page_header(__pa(sptep)); in audit_spte_after_sync()
196 u64 *sptep; in audit_write_protection() local
208 for_each_rmap_spte(rmapp, &iter, sptep) in audit_write_protection()
209 if (is_writable_pte(*sptep)) in audit_write_protection()
226 static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte() argument
228 audit_sptes_have_rmaps(vcpu, sptep, level); in audit_spte()
229 audit_mappings(vcpu, sptep, level); in audit_spte()
230 audit_spte_after_sync(vcpu, sptep, level); in audit_spte()