/arch/powerpc/kvm/ |
D | book3s_hv_rm_mmu.c | 84 unsigned long *rmap, long pte_index, int realmode) in kvmppc_add_revmap_chain() argument 89 if (*rmap & KVMPPC_RMAP_PRESENT) { in kvmppc_add_revmap_chain() 90 i = *rmap & KVMPPC_RMAP_INDEX; in kvmppc_add_revmap_chain() 103 *rmap = (*rmap & ~KVMPPC_RMAP_INDEX) | in kvmppc_add_revmap_chain() 106 unlock_rmap(rmap); in kvmppc_add_revmap_chain() 111 void kvmppc_update_rmap_change(unsigned long *rmap, unsigned long psize) in kvmppc_update_rmap_change() argument 119 if (order > (*rmap & KVMPPC_RMAP_CHG_ORDER)) in kvmppc_update_rmap_change() 120 *rmap = (*rmap & ~KVMPPC_RMAP_CHG_ORDER) | order; in kvmppc_update_rmap_change() 129 unsigned long *rmap; in revmap_for_hpte() local 137 rmap = real_vmalloc_addr(&memslot->arch.rmap[gfn - memslot->base_gfn]); in revmap_for_hpte() [all …]
|
D | book3s_64_vio_hv.c | 182 *prmap = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvmppc_gpa_to_ua() 395 unsigned long *rmap = NULL; in kvmppc_rm_h_put_tce_indirect() local 446 if (kvmppc_gpa_to_ua(vcpu->kvm, tce_list, &ua, &rmap)) in kvmppc_rm_h_put_tce_indirect() 449 rmap = (void *) vmalloc_to_phys(rmap); in kvmppc_rm_h_put_tce_indirect() 450 if (WARN_ON_ONCE_RM(!rmap)) in kvmppc_rm_h_put_tce_indirect() 461 lock_rmap(rmap); in kvmppc_rm_h_put_tce_indirect() 502 if (rmap) in kvmppc_rm_h_put_tce_indirect() 503 unlock_rmap(rmap); in kvmppc_rm_h_put_tce_indirect()
|
D | book3s_64_mmu_hv.c | 490 unsigned long *rmap; in kvmppc_book3s_hv_page_fault() local 674 rmap = &memslot->arch.rmap[gfn_base - memslot->base_gfn]; in kvmppc_book3s_hv_page_fault() 675 lock_rmap(rmap); in kvmppc_book3s_hv_page_fault() 680 unlock_rmap(rmap); in kvmppc_book3s_hv_page_fault() 685 rcbits = *rmap >> KVMPPC_RMAP_RC_SHIFT; in kvmppc_book3s_hv_page_fault() 690 unlock_rmap(rmap); in kvmppc_book3s_hv_page_fault() 696 kvmppc_add_revmap_chain(kvm, rev, rmap, index, 0); in kvmppc_book3s_hv_page_fault() 744 memset(memslot->arch.rmap, 0, in kvmppc_rmap_reset() 745 memslot->npages * sizeof(*memslot->arch.rmap)); in kvmppc_rmap_reset() 844 rmapp = &memslot->arch.rmap[gfn - memslot->base_gfn]; in kvm_unmap_rmapp() [all …]
|
D | book3s_hv.c | 3455 if (!dont || free->arch.rmap != dont->arch.rmap) { in kvmppc_core_free_memslot_hv() 3456 vfree(free->arch.rmap); in kvmppc_core_free_memslot_hv() 3457 free->arch.rmap = NULL; in kvmppc_core_free_memslot_hv() 3469 slot->arch.rmap = NULL; in kvmppc_core_create_memslot_hv() 3473 slot->arch.rmap = vzalloc(npages * sizeof(*slot->arch.rmap)); in kvmppc_core_create_memslot_hv() 3474 if (!slot->arch.rmap) in kvmppc_core_create_memslot_hv()
|
/arch/powerpc/include/asm/ |
D | kvm_book3s_64.h | 289 static inline void lock_rmap(unsigned long *rmap) in lock_rmap() argument 292 while (test_bit(KVMPPC_RMAP_LOCK_BIT, rmap)) in lock_rmap() 294 } while (test_and_set_bit_lock(KVMPPC_RMAP_LOCK_BIT, rmap)); in lock_rmap() 297 static inline void unlock_rmap(unsigned long *rmap) in unlock_rmap() argument 299 __clear_bit_unlock(KVMPPC_RMAP_LOCK_BIT, rmap); in unlock_rmap()
|
D | kvm_book3s.h | 218 unsigned long *rmap, long pte_index, int realmode); 219 extern void kvmppc_update_rmap_change(unsigned long *rmap, unsigned long psize);
|
D | kvm_host.h | 247 unsigned long *rmap; member
|
/arch/s390/mm/ |
D | gmap.c | 149 struct gmap_rmap *rmap, *rnext, *head; in gmap_rmap_radix_tree_free() local 168 gmap_for_each_rmap_safe(rmap, rnext, head) in gmap_rmap_radix_tree_free() 169 kfree(rmap); in gmap_rmap_radix_tree_free() 1014 struct gmap_rmap *rmap) in gmap_insert_rmap() argument 1021 rmap->next = radix_tree_deref_slot_protected(slot, in gmap_insert_rmap() 1023 radix_tree_replace_slot(&sg->host_to_rmap, slot, rmap); in gmap_insert_rmap() 1025 rmap->next = NULL; in gmap_insert_rmap() 1027 rmap); in gmap_insert_rmap() 1046 struct gmap_rmap *rmap; in gmap_protect_rmap() local 1058 rmap = kzalloc(sizeof(*rmap), GFP_KERNEL); in gmap_protect_rmap() [all …]
|
/arch/cris/include/arch-v32/arch/hwregs/ |
D | Makefile | 128 reg_map.h: $(DESIGNDIR)/top/rtl/global.rmap $(DESIGNDIR)/top/mod/modreg.rmap 130 reg_map_asm.h: $(DESIGNDIR)/top/rtl/global.rmap $(DESIGNDIR)/top/mod/modreg.rmap
|
/arch/x86/kvm/ |
D | mmu.c | 1347 return &slot->arch.rmap[level - PT_PAGE_TABLE_LEVEL][idx]; in __gfn_to_rmap() 1793 struct kvm_rmap_head *rmap; member 1805 iterator->rmap = __gfn_to_rmap(iterator->gfn, level, iterator->slot); in rmap_walk_init_level() 1826 return !!iterator->rmap; in slot_rmap_walk_okay() 1831 if (++iterator->rmap <= iterator->end_rmap) { in slot_rmap_walk_next() 1837 iterator->rmap = NULL; in slot_rmap_walk_next() 1890 ret |= handler(kvm, iterator.rmap, memslot, in kvm_handle_hva_range() 5207 if (iterator.rmap) in slot_handle_level_range() 5208 flush |= fn(kvm, iterator.rmap); in slot_handle_level_range()
|
D | x86.c | 8565 if (!dont || free->arch.rmap[i] != dont->arch.rmap[i]) { in kvm_arch_free_memslot() 8566 kvfree(free->arch.rmap[i]); in kvm_arch_free_memslot() 8567 free->arch.rmap[i] = NULL; in kvm_arch_free_memslot() 8596 slot->arch.rmap[i] = in kvm_arch_create_memslot() 8597 kvzalloc(lpages * sizeof(*slot->arch.rmap[i]), GFP_KERNEL); in kvm_arch_create_memslot() 8598 if (!slot->arch.rmap[i]) in kvm_arch_create_memslot() 8635 kvfree(slot->arch.rmap[i]); in kvm_arch_create_memslot() 8636 slot->arch.rmap[i] = NULL; in kvm_arch_create_memslot()
|
/arch/x86/include/asm/ |
D | kvm_host.h | 725 struct kvm_rmap_head *rmap[KVM_NR_PAGE_SIZES]; member
|