Lines Matching full:rev

81 void kvmppc_add_revmap_chain(struct kvm *kvm, struct revmap_entry *rev,  in kvmppc_add_revmap_chain()  argument
89 head = &kvm->arch.hpt.rev[i]; in kvmppc_add_revmap_chain()
92 tail = &kvm->arch.hpt.rev[head->back]; in kvmppc_add_revmap_chain()
95 rev->forw = i; in kvmppc_add_revmap_chain()
96 rev->back = head->back; in kvmppc_add_revmap_chain()
100 rev->forw = rev->back = pte_index; in kvmppc_add_revmap_chain()
161 struct revmap_entry *rev, in remove_revmap_chain() argument
172 ptel = rev->guest_rpte |= rcbits; in remove_revmap_chain()
179 next = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->forw]); in remove_revmap_chain()
180 prev = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->back]); in remove_revmap_chain()
181 next->back = rev->back; in remove_revmap_chain()
182 prev->forw = rev->forw; in remove_revmap_chain()
184 head = rev->forw; in remove_revmap_chain()
204 struct revmap_entry *rev; in kvmppc_do_h_enter() local
359 rev = &kvm->arch.hpt.rev[pte_index]; in kvmppc_do_h_enter()
361 rev = real_vmalloc_addr(rev); in kvmppc_do_h_enter()
362 if (rev) { in kvmppc_do_h_enter()
363 rev->guest_rpte = g_ptel; in kvmppc_do_h_enter()
364 note_hpte_modification(kvm, rev); in kvmppc_do_h_enter()
380 kvmppc_add_revmap_chain(kvm, rev, rmap, pte_index, in kvmppc_do_h_enter()
494 struct revmap_entry *rev; in kvmppc_do_h_remove() local
517 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_do_h_remove()
532 remove_revmap_chain(kvm, pte_index, rev, v, in kvmppc_do_h_remove()
535 r = rev->guest_rpte & ~HPTE_GR_RESERVED; in kvmppc_do_h_remove()
536 note_hpte_modification(kvm, rev); in kvmppc_do_h_remove()
567 struct revmap_entry *rev, *revs[4]; in kvmppc_h_bulk_remove() local
630 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_bulk_remove()
631 note_hpte_modification(kvm, rev); in kvmppc_h_bulk_remove()
635 rcbits = rev->guest_rpte & (HPTE_R_R|HPTE_R_C); in kvmppc_h_bulk_remove()
648 revs[n] = rev; in kvmppc_h_bulk_remove()
663 rev = revs[k]; in kvmppc_h_bulk_remove()
664 remove_revmap_chain(kvm, pte_index, rev, in kvmppc_h_bulk_remove()
666 rcbits = rev->guest_rpte & (HPTE_R_R|HPTE_R_C); in kvmppc_h_bulk_remove()
681 struct revmap_entry *rev; in kvmppc_h_protect() local
710 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_protect()
711 if (rev) { in kvmppc_h_protect()
712 r = (rev->guest_rpte & ~mask) | bits; in kvmppc_h_protect()
713 rev->guest_rpte = r; in kvmppc_h_protect()
714 note_hpte_modification(kvm, rev); in kvmppc_h_protect()
753 struct revmap_entry *rev = NULL; in kvmppc_h_read() local
763 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_read()
777 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()
840 struct revmap_entry *rev; in kvmppc_h_clear_mod() local
848 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[pte_index]); in kvmppc_h_clear_mod()
857 gr = rev->guest_rpte; in kvmppc_h_clear_mod()
859 rev->guest_rpte &= ~HPTE_R_C; in kvmppc_h_clear_mod()
860 note_hpte_modification(kvm, rev); in kvmppc_h_clear_mod()
1196 struct revmap_entry *rev; in kvmppc_hpte_hv_fault() local
1227 rev = real_vmalloc_addr(&kvm->arch.hpt.rev[index]); in kvmppc_hpte_hv_fault()
1228 gr = rev->guest_rpte; in kvmppc_hpte_hv_fault()