Searched refs:hpte (Results 1 – 5 of 5) sorted by relevance
/arch/powerpc/kvm/ |
D | book3s_hv_rm_mmu.c | 182 __be64 *hpte; in kvmppc_do_h_enter() local 300 hpte = (__be64 *)(kvm->arch.hpt.virt + (pte_index << 4)); in kvmppc_do_h_enter() 302 if ((be64_to_cpu(*hpte) & HPTE_V_VALID) == 0 && in kvmppc_do_h_enter() 303 try_lock_hpte(hpte, HPTE_V_HVLOCK | HPTE_V_VALID | in kvmppc_do_h_enter() 306 hpte += 2; in kvmppc_do_h_enter() 315 hpte -= 16; in kvmppc_do_h_enter() 318 while (!try_lock_hpte(hpte, HPTE_V_HVLOCK)) in kvmppc_do_h_enter() 320 pte = be64_to_cpu(hpte[0]); in kvmppc_do_h_enter() 323 __unlock_hpte(hpte, pte); in kvmppc_do_h_enter() 324 hpte += 2; in kvmppc_do_h_enter() [all …]
|
D | book3s_pr_papr.c | 44 __be64 *hpte; in kvmppc_h_pr_enter() local 56 hpte = pteg; in kvmppc_h_pr_enter() 63 if ((be64_to_cpu(*hpte) & HPTE_V_VALID) == 0) in kvmppc_h_pr_enter() 65 hpte += 2; in kvmppc_h_pr_enter() 68 hpte += i * 2; in kvmppc_h_pr_enter() 69 if (*hpte & HPTE_V_VALID) in kvmppc_h_pr_enter() 73 hpte[0] = cpu_to_be64(kvmppc_get_gpr(vcpu, 6)); in kvmppc_h_pr_enter() 74 hpte[1] = cpu_to_be64(kvmppc_get_gpr(vcpu, 7)); in kvmppc_h_pr_enter() 77 if (copy_to_user((void __user *)pteg_addr, hpte, HPTE_SIZE)) in kvmppc_h_pr_enter()
|
D | book3s_64_mmu_hv.c | 483 unsigned long hpte[3], r; in kvmppc_book3s_hv_page_fault() local 530 hpte[0] = be64_to_cpu(hptep[0]) & ~HPTE_V_HVLOCK; in kvmppc_book3s_hv_page_fault() 531 hpte[1] = be64_to_cpu(hptep[1]); in kvmppc_book3s_hv_page_fault() 532 hpte[2] = r = rev->guest_rpte; in kvmppc_book3s_hv_page_fault() 533 unlock_hpte(hptep, hpte[0]); in kvmppc_book3s_hv_page_fault() 537 hpte[0] = hpte_new_to_old_v(hpte[0], hpte[1]); in kvmppc_book3s_hv_page_fault() 538 hpte[1] = hpte_new_to_old_r(hpte[1]); in kvmppc_book3s_hv_page_fault() 540 if (hpte[0] != vcpu->arch.pgfault_hpte[0] || in kvmppc_book3s_hv_page_fault() 541 hpte[1] != vcpu->arch.pgfault_hpte[1]) in kvmppc_book3s_hv_page_fault() 545 psize = hpte_page_size(hpte[0], r); in kvmppc_book3s_hv_page_fault() [all …]
|
/arch/powerpc/include/asm/ |
D | kvm_book3s_64.h | 69 static inline long try_lock_hpte(__be64 *hpte, unsigned long bits) in try_lock_hpte() argument 91 : "r" (hpte), "r" (be_bits), "r" (be_lockbit) in try_lock_hpte() 96 static inline void unlock_hpte(__be64 *hpte, unsigned long hpte_v) in unlock_hpte() argument 100 hpte[0] = cpu_to_be64(hpte_v); in unlock_hpte() 104 static inline void __unlock_hpte(__be64 *hpte, unsigned long hpte_v) in __unlock_hpte() argument 107 hpte[0] = cpu_to_be64(hpte_v); in __unlock_hpte()
|
/arch/powerpc/mm/ |
D | hash_native_64.c | 592 static void hpte_decode(struct hash_pte *hpte, unsigned long slot, in hpte_decode() argument 596 unsigned long hpte_v = be64_to_cpu(hpte->v); in hpte_decode() 597 unsigned long hpte_r = be64_to_cpu(hpte->r); in hpte_decode()
|