Lines Matching refs:level
35 typedef void (*inspect_spte_fn) (struct kvm_vcpu *vcpu, u64 *sptep, int level);
38 inspect_spte_fn fn, int level) in __mmu_spte_walk() argument
45 fn(vcpu, ent + i, level); in __mmu_spte_walk()
48 !is_last_spte(ent[i], level)) { in __mmu_spte_walk()
52 __mmu_spte_walk(vcpu, child, fn, level - 1); in __mmu_spte_walk()
96 static void audit_mappings(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_mappings() argument
106 if (level != PT_PAGE_TABLE_LEVEL) { in audit_mappings()
108 "level = %d\n", sp, level); in audit_mappings()
113 if (!is_shadow_present_pte(*sptep) || !is_last_spte(*sptep, level)) in audit_mappings()
153 rmapp = __gfn_to_rmap(gfn, rev_sp->role.level, slot); 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()
169 static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) in audit_spte_after_sync() argument
182 if (sp->role.level != PT_PAGE_TABLE_LEVEL) in check_mappings_rmap()
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()