Lines Matching full:rev

68 void kvmppc_add_revmap_chain(struct kvm *kvm, struct revmap_entry *rev,  in kvmppc_add_revmap_chain()  argument
76 head = &kvm->arch.hpt.rev[i]; in kvmppc_add_revmap_chain()
79 tail = &kvm->arch.hpt.rev[head->back]; in kvmppc_add_revmap_chain()
82 rev->forw = i; in kvmppc_add_revmap_chain()
83 rev->back = head->back; in kvmppc_add_revmap_chain()
87 rev->forw = rev->back = pte_index; in kvmppc_add_revmap_chain()
148 struct revmap_entry *rev, in remove_revmap_chain() argument
159 ptel = rev->guest_rpte |= rcbits; in remove_revmap_chain()
166 next = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->forw]); in remove_revmap_chain()
167 prev = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->back]); in remove_revmap_chain()
168 next->back = rev->back; in remove_revmap_chain()
169 prev->forw = rev->forw; in remove_revmap_chain()
171 head = rev->forw; in remove_revmap_chain()
191 struct revmap_entry *rev; in kvmppc_do_h_enter() local
355 rev = &kvm->arch.hpt.rev[pte_index]; in kvmppc_do_h_enter()
357 rev = real_vmalloc_addr(rev); in kvmppc_do_h_enter()
358 if (rev) { in kvmppc_do_h_enter()
359 rev->guest_rpte = g_ptel; in kvmppc_do_h_enter()
360 note_hpte_modification(kvm, rev); in kvmppc_do_h_enter()
376 kvmppc_add_revmap_chain(kvm, rev, rmap, pte_index, in kvmppc_do_h_enter()
491 struct revmap_entry *rev; in kvmppc_do_h_remove() local
514 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_do_h_remove()
529 remove_revmap_chain(kvm, pte_index, rev, v, in kvmppc_do_h_remove()
532 r = rev->guest_rpte & ~HPTE_GR_RESERVED; in kvmppc_do_h_remove()
533 note_hpte_modification(kvm, rev); in kvmppc_do_h_remove()
565 struct revmap_entry *rev, *revs[4]; in kvmppc_h_bulk_remove() local
628 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_bulk_remove()
629 note_hpte_modification(kvm, rev); in kvmppc_h_bulk_remove()
633 rcbits = rev->guest_rpte & (HPTE_R_R|HPTE_R_C); in kvmppc_h_bulk_remove()
646 revs[n] = rev; in kvmppc_h_bulk_remove()
661 rev = revs[k]; in kvmppc_h_bulk_remove()
662 remove_revmap_chain(kvm, pte_index, rev, in kvmppc_h_bulk_remove()
664 rcbits = rev->guest_rpte & (HPTE_R_R|HPTE_R_C); in kvmppc_h_bulk_remove()
679 struct revmap_entry *rev; in kvmppc_h_protect() local
708 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_protect()
709 if (rev) { in kvmppc_h_protect()
710 r = (rev->guest_rpte & ~mask) | bits; in kvmppc_h_protect()
711 rev->guest_rpte = r; in kvmppc_h_protect()
712 note_hpte_modification(kvm, rev); in kvmppc_h_protect()
752 struct revmap_entry *rev = NULL; in kvmppc_h_read() local
762 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_read()
776 r = rev[i].guest_rpte | (r & (HPTE_R_R | HPTE_R_C)); in kvmppc_h_read()
792 struct revmap_entry *rev; in kvmppc_h_clear_ref() local
801 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_clear_ref()
810 gr = rev->guest_rpte; in kvmppc_h_clear_ref()
811 if (rev->guest_rpte & HPTE_R_R) { in kvmppc_h_clear_ref()
812 rev->guest_rpte &= ~HPTE_R_R; in kvmppc_h_clear_ref()
813 note_hpte_modification(kvm, rev); in kvmppc_h_clear_ref()
841 struct revmap_entry *rev; in kvmppc_h_clear_mod() local
849 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_clear_mod()
858 gr = rev->guest_rpte; in kvmppc_h_clear_mod()
860 rev->guest_rpte &= ~HPTE_R_C; in kvmppc_h_clear_mod()
861 note_hpte_modification(kvm, rev); in kvmppc_h_clear_mod()
1198 struct revmap_entry *rev; in kvmppc_hpte_hv_fault() local
1229 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[index]); in kvmppc_hpte_hv_fault()
1230 gr = rev->guest_rpte; in kvmppc_hpte_hv_fault()