Home
last modified time | relevance | path

Searched refs:pdpe (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c201 uint64_t *pml4e, *pdpe, *pde; in __virt_pg_map() local
229 pdpe = virt_create_upper_pte(vm, PTE_GET_PFN(*pml4e), vaddr, paddr, 2, page_size); in __virt_pg_map()
230 if (*pdpe & PTE_LARGE_MASK) in __virt_pg_map()
233 pde = virt_create_upper_pte(vm, PTE_GET_PFN(*pdpe), vaddr, paddr, 1, page_size); in __virt_pg_map()
253 uint64_t *pml4e, *pdpe, *pde; in _vm_get_page_table_entry() local
301 pdpe = addr_gpa2hva(vm, PTE_GET_PFN(pml4e[index[3]]) * vm->page_size); in _vm_get_page_table_entry()
302 TEST_ASSERT(pdpe[index[2]] & PTE_PRESENT_MASK, in _vm_get_page_table_entry()
304 TEST_ASSERT(!(pdpe[index[2]] & PTE_LARGE_MASK), in _vm_get_page_table_entry()
306 TEST_ASSERT((pdpe[index[2]] & rsvd_mask) == 0, in _vm_get_page_table_entry()
309 pde = addr_gpa2hva(vm, PTE_GET_PFN(pdpe[index[2]]) * vm->page_size); in _vm_get_page_table_entry()
[all …]
Dvmx.c436 struct eptPageTableEntry *pdpe; in nested_pg_map() local
437 pdpe = addr_gpa2hva(vm, pml4e[index[3]].address * vm->page_size); in nested_pg_map()
438 if (!pdpe[index[2]].readable) { in nested_pg_map()
439 pdpe[index[2]].address = vm_alloc_page_table(vm) >> vm->page_shift; in nested_pg_map()
440 pdpe[index[2]].writable = true; in nested_pg_map()
441 pdpe[index[2]].readable = true; in nested_pg_map()
442 pdpe[index[2]].executable = true; in nested_pg_map()
447 pde = addr_gpa2hva(vm, pdpe[index[2]].address * vm->page_size); in nested_pg_map()