Searched refs:gpte (Results 1 – 3 of 3) sorted by relevance
/arch/x86/kvm/ |
D | paging_tmpl.h | 88 static gfn_t gpte_to_gfn(pt_element_t gpte) in gpte_to_gfn() argument 90 return (gpte & PT_BASE_ADDR_MASK) >> PAGE_SHIFT; in gpte_to_gfn() 93 static gfn_t gpte_to_gfn_pde(pt_element_t gpte) in gpte_to_gfn_pde() argument 95 return (gpte & PT_DIR_BASE_ADDR_MASK) >> PAGE_SHIFT; in gpte_to_gfn_pde() 117 static unsigned FNAME(gpte_access)(struct kvm_vcpu *vcpu, pt_element_t gpte) in FNAME() 121 access = (gpte & (PT_WRITABLE_MASK | PT_USER_MASK)) | ACC_EXEC_MASK; in FNAME() 124 access &= ~(gpte >> PT64_NX_SHIFT); in FNAME() 256 pt_element_t gpte; in FNAME() local 261 gpte = *(const pt_element_t *)pte; in FNAME() 262 if (~gpte & (PT_PRESENT_MASK | PT_ACCESSED_MASK)) { in FNAME() [all …]
|
D | mmu.c | 249 static gfn_t pse36_gfn_delta(u32 gpte) in pse36_gfn_delta() argument 253 return (gpte & PT32_DIR_PSE36_MASK) << shift; in pse36_gfn_delta() 2392 u64 gpte = 0; in mmu_guess_page_from_pte_write() local 2409 r = kvm_read_guest(vcpu->kvm, gpa & ~(u64)7, &gpte, 8); in mmu_guess_page_from_pte_write() 2412 memcpy((void *)&gpte + (gpa % 8), new, 4); in mmu_guess_page_from_pte_write() 2414 memcpy((void *)&gpte, new, 8); in mmu_guess_page_from_pte_write() 2418 memcpy((void *)&gpte, new, 4); in mmu_guess_page_from_pte_write() 2420 if (!is_present_pte(gpte)) in mmu_guess_page_from_pte_write() 2422 gfn = (gpte & PT64_BASE_ADDR_MASK) >> PAGE_SHIFT; in mmu_guess_page_from_pte_write() 2424 if (is_large_pte(gpte) && is_largepage_backed(vcpu, gfn)) { in mmu_guess_page_from_pte_write()
|
/arch/ia64/kvm/ |
D | vtlb.c | 160 static void vhpt_insert(u64 pte, u64 itir, u64 ifa, u64 gpte) in vhpt_insert() argument 168 gpaddr = ((gpte & _PAGE_PPN_MASK) >> ps << ps) | in vhpt_insert()
|