Searched refs:rmapp (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/powerpc/kvm/
H A Dbook3s_64_mmu_hv.c670 unsigned long *rmapp, kvm_handle_hva_range()
707 int (*handler)(struct kvm *kvm, unsigned long *rmapp, kvm_handle_hva()
713 static int kvm_unmap_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_unmap_rmapp() argument
722 lock_rmap(rmapp); kvm_unmap_rmapp()
723 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { kvm_unmap_rmapp()
724 unlock_rmap(rmapp); kvm_unmap_rmapp()
733 i = *rmapp & KVMPPC_RMAP_INDEX; kvm_unmap_rmapp()
737 unlock_rmap(rmapp); kvm_unmap_rmapp()
745 *rmapp &= ~(KVMPPC_RMAP_PRESENT | KVMPPC_RMAP_INDEX); kvm_unmap_rmapp()
752 *rmapp = (*rmapp & ~KVMPPC_RMAP_INDEX) | j; kvm_unmap_rmapp()
764 *rmapp |= rcbits << KVMPPC_RMAP_RC_SHIFT; kvm_unmap_rmapp()
766 kvmppc_update_rmap_change(rmapp, psize); kvm_unmap_rmapp()
772 unlock_rmap(rmapp); kvm_unmap_rmapp()
793 unsigned long *rmapp; kvmppc_core_flush_memslot_hv() local
797 rmapp = memslot->arch.rmap; kvmppc_core_flush_memslot_hv()
806 if (*rmapp & KVMPPC_RMAP_PRESENT) kvmppc_core_flush_memslot_hv()
807 kvm_unmap_rmapp(kvm, rmapp, gfn); kvmppc_core_flush_memslot_hv()
808 ++rmapp; kvmppc_core_flush_memslot_hv()
813 static int kvm_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_age_rmapp() argument
822 lock_rmap(rmapp); kvm_age_rmapp()
823 if (*rmapp & KVMPPC_RMAP_REFERENCED) { kvm_age_rmapp()
824 *rmapp &= ~KVMPPC_RMAP_REFERENCED; kvm_age_rmapp()
827 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { kvm_age_rmapp()
828 unlock_rmap(rmapp); kvm_age_rmapp()
832 i = head = *rmapp & KVMPPC_RMAP_INDEX; kvm_age_rmapp()
843 unlock_rmap(rmapp); kvm_age_rmapp()
862 unlock_rmap(rmapp); kvm_age_rmapp()
871 static int kvm_test_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_test_age_rmapp() argument
879 if (*rmapp & KVMPPC_RMAP_REFERENCED) kvm_test_age_rmapp()
882 lock_rmap(rmapp); kvm_test_age_rmapp()
883 if (*rmapp & KVMPPC_RMAP_REFERENCED) kvm_test_age_rmapp()
886 if (*rmapp & KVMPPC_RMAP_PRESENT) { kvm_test_age_rmapp()
887 i = head = *rmapp & KVMPPC_RMAP_INDEX; kvm_test_age_rmapp()
898 unlock_rmap(rmapp); kvm_test_age_rmapp()
921 static int kvm_test_clear_dirty_npages(struct kvm *kvm, unsigned long *rmapp) kvm_test_clear_dirty_npages() argument
931 lock_rmap(rmapp); kvm_test_clear_dirty_npages()
932 if (*rmapp & KVMPPC_RMAP_CHANGED) { kvm_test_clear_dirty_npages()
933 long change_order = (*rmapp & KVMPPC_RMAP_CHG_ORDER) kvm_test_clear_dirty_npages()
935 *rmapp &= ~(KVMPPC_RMAP_CHANGED | KVMPPC_RMAP_CHG_ORDER); kvm_test_clear_dirty_npages()
940 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { kvm_test_clear_dirty_npages()
941 unlock_rmap(rmapp); kvm_test_clear_dirty_npages()
945 i = head = *rmapp & KVMPPC_RMAP_INDEX; kvm_test_clear_dirty_npages()
972 unlock_rmap(rmapp); kvm_test_clear_dirty_npages()
1006 unlock_rmap(rmapp); kvm_test_clear_dirty_npages()
1032 unsigned long *rmapp; kvmppc_hv_get_dirty_log() local
1036 rmapp = memslot->arch.rmap; kvmppc_hv_get_dirty_log()
1038 int npages = kvm_test_clear_dirty_npages(kvm, rmapp); kvmppc_hv_get_dirty_log()
1047 ++rmapp; kvmppc_hv_get_dirty_log()
666 kvm_handle_hva_range(struct kvm *kvm, unsigned long start, unsigned long end, int (*handler)(struct kvm *kvm, unsigned long *rmapp, unsigned long gfn)) kvm_handle_hva_range() argument
706 kvm_handle_hva(struct kvm *kvm, unsigned long hva, int (*handler)(struct kvm *kvm, unsigned long *rmapp, unsigned long gfn)) kvm_handle_hva() argument
/linux-4.4.14/arch/x86/kvm/
H A Dmmu_audit.c132 unsigned long *rmapp; inspect_spte_has_rmap() local
153 rmapp = __gfn_to_rmap(gfn, rev_sp->role.level, slot); inspect_spte_has_rmap()
154 if (!*rmapp) { inspect_spte_has_rmap()
195 unsigned long *rmapp; audit_write_protection() local
206 rmapp = __gfn_to_rmap(sp->gfn, PT_PAGE_TABLE_LEVEL, slot); audit_write_protection()
208 for_each_rmap_spte(rmapp, &iter, sptep) audit_write_protection()
H A Dmmu.c1068 unsigned long *rmapp; rmap_add() local
1072 rmapp = gfn_to_rmap(vcpu->kvm, gfn, sp); rmap_add()
1073 return pte_list_add(vcpu, spte, rmapp); rmap_add()
1080 unsigned long *rmapp; rmap_remove() local
1084 rmapp = gfn_to_rmap(kvm, gfn, sp); rmap_remove()
1085 pte_list_remove(spte, rmapp); rmap_remove()
1210 static bool __rmap_write_protect(struct kvm *kvm, unsigned long *rmapp, __rmap_write_protect() argument
1217 for_each_rmap_spte(rmapp, &iter, sptep) __rmap_write_protect()
1234 static bool __rmap_clear_dirty(struct kvm *kvm, unsigned long *rmapp) __rmap_clear_dirty() argument
1240 for_each_rmap_spte(rmapp, &iter, sptep) __rmap_clear_dirty()
1257 static bool __rmap_set_dirty(struct kvm *kvm, unsigned long *rmapp) __rmap_set_dirty() argument
1263 for_each_rmap_spte(rmapp, &iter, sptep) __rmap_set_dirty()
1283 unsigned long *rmapp; kvm_mmu_write_protect_pt_masked() local
1286 rmapp = __gfn_to_rmap(slot->base_gfn + gfn_offset + __ffs(mask), kvm_mmu_write_protect_pt_masked()
1288 __rmap_write_protect(kvm, rmapp, false); kvm_mmu_write_protect_pt_masked()
1308 unsigned long *rmapp; kvm_mmu_clear_dirty_pt_masked() local
1311 rmapp = __gfn_to_rmap(slot->base_gfn + gfn_offset + __ffs(mask), kvm_mmu_clear_dirty_pt_masked()
1313 __rmap_clear_dirty(kvm, rmapp); kvm_mmu_clear_dirty_pt_masked()
1345 unsigned long *rmapp; rmap_write_protect() local
1352 rmapp = __gfn_to_rmap(gfn, i, slot); rmap_write_protect()
1353 write_protected |= __rmap_write_protect(vcpu->kvm, rmapp, true); rmap_write_protect()
1359 static bool kvm_zap_rmapp(struct kvm *kvm, unsigned long *rmapp) kvm_zap_rmapp() argument
1365 while ((sptep = rmap_get_first(*rmapp, &iter))) { kvm_zap_rmapp()
1376 static int kvm_unmap_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_unmap_rmapp() argument
1380 return kvm_zap_rmapp(kvm, rmapp); kvm_unmap_rmapp()
1383 static int kvm_set_pte_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_set_pte_rmapp() argument
1398 for_each_rmap_spte(rmapp, &iter, sptep) { kvm_set_pte_rmapp()
1499 unsigned long *rmapp, kvm_handle_hva_range()
1543 int (*handler)(struct kvm *kvm, unsigned long *rmapp, kvm_handle_hva()
1566 static int kvm_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_age_rmapp() argument
1576 for_each_rmap_spte(rmapp, &iter, sptep) kvm_age_rmapp()
1587 static int kvm_test_age_rmapp(struct kvm *kvm, unsigned long *rmapp, kvm_test_age_rmapp() argument
1603 for_each_rmap_spte(rmapp, &iter, sptep) kvm_test_age_rmapp()
1616 unsigned long *rmapp; rmap_recycle() local
1621 rmapp = gfn_to_rmap(vcpu->kvm, gfn, sp); rmap_recycle()
1623 kvm_unmap_rmapp(vcpu->kvm, rmapp, NULL, gfn, sp->role.level, 0); rmap_recycle()
4594 static bool slot_rmap_write_protect(struct kvm *kvm, unsigned long *rmapp) slot_rmap_write_protect() argument
4596 return __rmap_write_protect(kvm, rmapp, false); slot_rmap_write_protect()
4632 unsigned long *rmapp) kvm_mmu_zap_collapsible_spte()
4641 for_each_rmap_spte(rmapp, &iter, sptep) { kvm_mmu_zap_collapsible_spte()
1494 kvm_handle_hva_range(struct kvm *kvm, unsigned long start, unsigned long end, unsigned long data, int (*handler)(struct kvm *kvm, unsigned long *rmapp, struct kvm_memory_slot *slot, gfn_t gfn, int level, unsigned long data)) kvm_handle_hva_range() argument
1541 kvm_handle_hva(struct kvm *kvm, unsigned long hva, unsigned long data, int (*handler)(struct kvm *kvm, unsigned long *rmapp, struct kvm_memory_slot *slot, gfn_t gfn, int level, unsigned long data)) kvm_handle_hva() argument
4631 kvm_mmu_zap_collapsible_spte(struct kvm *kvm, unsigned long *rmapp) kvm_mmu_zap_collapsible_spte() argument

Completed in 84 milliseconds