Searched refs:gpte (Results 1 – 6 of 6) sorted by relevance
/arch/x86/kvm/mmu/ |
D | paging_tmpl.h | 96 static inline gfn_t pse36_gfn_delta(u32 gpte) in pse36_gfn_delta() argument 100 return (gpte & PT32_DIR_PSE36_MASK) << shift; in pse36_gfn_delta() 104 static gfn_t gpte_to_gfn_lvl(pt_element_t gpte, int lvl) in gpte_to_gfn_lvl() argument 106 return (gpte & PT_LVL_ADDR_MASK(lvl)) >> PAGE_SHIFT; in gpte_to_gfn_lvl() 110 unsigned gpte) in FNAME() 122 mask |= (gpte >> (PT_GUEST_DIRTY_SHIFT - PT_WRITABLE_SHIFT)) & in FNAME() 136 static bool FNAME(is_bad_mt_xwr)(struct rsvd_bits_validate *rsvd_check, u64 gpte) in FNAME() 141 return __is_bad_mt_xwr(rsvd_check, gpte); in FNAME() 145 static bool FNAME(is_rsvd_bits_set)(struct kvm_mmu *mmu, u64 gpte, int level) in FNAME() 147 return __is_rsvd_bits_set(&mmu->guest_rsvd_check, gpte, level) || in FNAME() [all …]
|
/arch/powerpc/kvm/ |
D | book3s_64_mmu.c | 192 struct kvmppc_pte *gpte, bool data, in kvmppc_mmu_book3s_64_xlate() argument 213 gpte->eaddr = eaddr; in kvmppc_mmu_book3s_64_xlate() 214 gpte->vpage = kvmppc_mmu_book3s_64_ea_to_vp(vcpu, eaddr, data); in kvmppc_mmu_book3s_64_xlate() 215 gpte->raddr = vcpu->arch.magic_page_pa | (gpte->raddr & 0xfff); in kvmppc_mmu_book3s_64_xlate() 216 gpte->raddr &= KVM_PAM; in kvmppc_mmu_book3s_64_xlate() 217 gpte->may_execute = true; in kvmppc_mmu_book3s_64_xlate() 218 gpte->may_read = true; in kvmppc_mmu_book3s_64_xlate() 219 gpte->may_write = true; in kvmppc_mmu_book3s_64_xlate() 220 gpte->page_size = MMU_PAGE_4K; in kvmppc_mmu_book3s_64_xlate() 221 gpte->wimg = HPTE_R_M; in kvmppc_mmu_book3s_64_xlate() [all …]
|
D | book3s_64_mmu_radix.c | 138 struct kvmppc_pte *gpte, u64 root, in kvmppc_mmu_walk_radix_tree() argument 206 gpte->page_size = ps; in kvmppc_mmu_walk_radix_tree() 207 gpte->page_shift = offset; in kvmppc_mmu_walk_radix_tree() 209 gpte->eaddr = eaddr; in kvmppc_mmu_walk_radix_tree() 210 gpte->raddr = gpa; in kvmppc_mmu_walk_radix_tree() 213 gpte->may_read = !!(pte & _PAGE_READ); in kvmppc_mmu_walk_radix_tree() 214 gpte->may_write = !!(pte & _PAGE_WRITE); in kvmppc_mmu_walk_radix_tree() 215 gpte->may_execute = !!(pte & _PAGE_EXEC); in kvmppc_mmu_walk_radix_tree() 217 gpte->rc = pte & (_PAGE_ACCESSED | _PAGE_DIRTY); in kvmppc_mmu_walk_radix_tree() 234 struct kvmppc_pte *gpte, u64 table, in kvmppc_mmu_radix_translate_table() argument [all …]
|
D | book3s_hv_nested.c | 1423 struct kvmppc_pte gpte, in kvmhv_handle_nested_set_rc() argument 1435 if (pgflags & ~gpte.rc) in kvmhv_handle_nested_set_rc() 1441 gpte.raddr, kvm->arch.lpid); in kvmhv_handle_nested_set_rc() 1491 struct kvmppc_pte gpte; in __kvmhv_nested_page_fault() local 1514 ret = kvmhv_translate_addr_nested(vcpu, gp, n_gpa, dsisr, &gpte); in __kvmhv_nested_page_fault() 1530 ret = kvmhv_handle_nested_set_rc(vcpu, gp, n_gpa, gpte, dsisr); in __kvmhv_nested_page_fault() 1547 l1_shift = gpte.page_shift; in __kvmhv_nested_page_fault() 1554 gpa = gpte.raddr; in __kvmhv_nested_page_fault() 1615 perm |= gpte.may_read ? 0UL : _PAGE_READ; in __kvmhv_nested_page_fault() 1616 perm |= gpte.may_write ? 0UL : _PAGE_WRITE; in __kvmhv_nested_page_fault() [all …]
|
D | book3s_64_mmu_hv.c | 342 struct kvmppc_pte *gpte, bool data, bool iswrite) in kvmppc_mmu_book3s_64_hv_xlate() argument 354 return kvmppc_mmu_radix_xlate(vcpu, eaddr, gpte, data, iswrite); in kvmppc_mmu_book3s_64_hv_xlate() 384 gpte->eaddr = eaddr; in kvmppc_mmu_book3s_64_hv_xlate() 385 gpte->vpage = ((v & HPTE_V_AVPN) << 4) | ((eaddr >> 12) & 0xfff); in kvmppc_mmu_book3s_64_hv_xlate() 393 gpte->may_read = hpte_read_permission(pp, key); in kvmppc_mmu_book3s_64_hv_xlate() 394 gpte->may_write = hpte_write_permission(pp, key); in kvmppc_mmu_book3s_64_hv_xlate() 395 gpte->may_execute = gpte->may_read && !(gr & (HPTE_R_N | HPTE_R_G)); in kvmppc_mmu_book3s_64_hv_xlate() 401 gpte->may_read = 0; in kvmppc_mmu_book3s_64_hv_xlate() 403 gpte->may_write = 0; in kvmppc_mmu_book3s_64_hv_xlate() 407 gpte->raddr = kvmppc_mmu_get_real_addr(v, gr, eaddr); in kvmppc_mmu_book3s_64_hv_xlate()
|
/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 186 struct kvmppc_pte *gpte, u64 root, 189 struct kvmppc_pte *gpte, u64 table, 192 struct kvmppc_pte *gpte, bool data, bool iswrite);
|