• Home
  • Raw
  • Download

Lines Matching refs:rmapp

758 			      unsigned long *rmapp, unsigned long gfn)  in kvmppc_unmap_hpte()  argument
768 *rmapp &= ~(KVMPPC_RMAP_PRESENT | KVMPPC_RMAP_INDEX); in kvmppc_unmap_hpte()
775 *rmapp = (*rmapp & ~KVMPPC_RMAP_INDEX) | j; in kvmppc_unmap_hpte()
788 *rmapp |= rcbits << KVMPPC_RMAP_RC_SHIFT; in kvmppc_unmap_hpte()
803 unsigned long *rmapp; in kvm_unmap_rmapp() local
805 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_unmap_rmapp()
807 lock_rmap(rmapp); in kvm_unmap_rmapp()
808 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { in kvm_unmap_rmapp()
809 unlock_rmap(rmapp); in kvm_unmap_rmapp()
818 i = *rmapp & KVMPPC_RMAP_INDEX; in kvm_unmap_rmapp()
822 unlock_rmap(rmapp); in kvm_unmap_rmapp()
828 kvmppc_unmap_hpte(kvm, i, memslot, rmapp, gfn); in kvm_unmap_rmapp()
829 unlock_rmap(rmapp); in kvm_unmap_rmapp()
854 unsigned long *rmapp; in kvmppc_core_flush_memslot_hv() local
857 rmapp = memslot->arch.rmap; in kvmppc_core_flush_memslot_hv()
870 if (*rmapp & KVMPPC_RMAP_PRESENT) in kvmppc_core_flush_memslot_hv()
872 ++rmapp; in kvmppc_core_flush_memslot_hv()
883 unsigned long *rmapp; in kvm_age_rmapp() local
885 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_age_rmapp()
887 lock_rmap(rmapp); in kvm_age_rmapp()
888 if (*rmapp & KVMPPC_RMAP_REFERENCED) { in kvm_age_rmapp()
889 *rmapp &= ~KVMPPC_RMAP_REFERENCED; in kvm_age_rmapp()
892 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { in kvm_age_rmapp()
893 unlock_rmap(rmapp); in kvm_age_rmapp()
897 i = head = *rmapp & KVMPPC_RMAP_INDEX; in kvm_age_rmapp()
908 unlock_rmap(rmapp); in kvm_age_rmapp()
927 unlock_rmap(rmapp); in kvm_age_rmapp()
954 unsigned long *rmapp; in kvm_test_age_rmapp() local
956 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_test_age_rmapp()
957 if (*rmapp & KVMPPC_RMAP_REFERENCED) in kvm_test_age_rmapp()
960 lock_rmap(rmapp); in kvm_test_age_rmapp()
961 if (*rmapp & KVMPPC_RMAP_REFERENCED) in kvm_test_age_rmapp()
964 if (*rmapp & KVMPPC_RMAP_PRESENT) { in kvm_test_age_rmapp()
965 i = head = *rmapp & KVMPPC_RMAP_INDEX; in kvm_test_age_rmapp()
976 unlock_rmap(rmapp); in kvm_test_age_rmapp()
1011 static int kvm_test_clear_dirty_npages(struct kvm *kvm, unsigned long *rmapp) in kvm_test_clear_dirty_npages() argument
1021 lock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1022 if (!(*rmapp & KVMPPC_RMAP_PRESENT)) { in kvm_test_clear_dirty_npages()
1023 unlock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1027 i = head = *rmapp & KVMPPC_RMAP_INDEX; in kvm_test_clear_dirty_npages()
1054 unlock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1088 unlock_rmap(rmapp); in kvm_test_clear_dirty_npages()
1114 unsigned long *rmapp; in kvmppc_hv_get_dirty_log_hpt() local
1117 rmapp = memslot->arch.rmap; in kvmppc_hv_get_dirty_log_hpt()
1119 int npages = kvm_test_clear_dirty_npages(kvm, rmapp); in kvmppc_hv_get_dirty_log_hpt()
1127 ++rmapp; in kvmppc_hv_get_dirty_log_hpt()
1259 unsigned long *rmapp; in resize_hpt_rehash_hpte() local
1260 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in resize_hpt_rehash_hpte()
1262 lock_rmap(rmapp); in resize_hpt_rehash_hpte()
1263 kvmppc_unmap_hpte(kvm, idx, memslot, rmapp, gfn); in resize_hpt_rehash_hpte()
1264 unlock_rmap(rmapp); in resize_hpt_rehash_hpte()