Home
last modified time | relevance | path

Searched refs:pte (Results 1 – 7 of 7) sorted by relevance

/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c173 uint64_t *pte = virt_get_pte(vm, pt_pfn, vaddr, level); in virt_create_upper_pte() local
175 if (!(*pte & PTE_PRESENT_MASK)) { in virt_create_upper_pte()
176 *pte = PTE_PRESENT_MASK | PTE_WRITABLE_MASK; in virt_create_upper_pte()
178 *pte |= PTE_LARGE_MASK | (paddr & PHYSICAL_PAGE_MASK); in virt_create_upper_pte()
180 *pte |= vm_alloc_page_table(vm) & PHYSICAL_PAGE_MASK; in virt_create_upper_pte()
190 TEST_ASSERT(!(*pte & PTE_LARGE_MASK), in virt_create_upper_pte()
194 return pte; in virt_create_upper_pte()
202 uint64_t *pte; in __virt_pg_map() local
238 pte = virt_get_pte(vm, PTE_GET_PFN(*pde), vaddr, 0); in __virt_pg_map()
239 TEST_ASSERT(!(*pte & PTE_PRESENT_MASK), in __virt_pg_map()
[all …]
Dvmx.c456 struct eptPageTableEntry *pte; in nested_pg_map() local
457 pte = addr_gpa2hva(vm, pde[index[1]].address * vm->page_size); in nested_pg_map()
458 pte[index[0]].address = paddr >> vm->page_shift; in nested_pg_map()
459 pte[index[0]].writable = true; in nested_pg_map()
460 pte[index[0]].readable = true; in nested_pg_map()
461 pte[index[0]].executable = true; in nested_pg_map()
467 pte[index[0]].accessed = true; in nested_pg_map()
468 pte[index[0]].dirty = true; in nested_pg_map()
/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c117 uint64_t *pte, ptea; in virt_dump_ptes() local
120 pte = addr_gpa2hva(vm, ptea); in virt_dump_ptes()
121 if (*pte & PAGE_INVALID) in virt_dump_ptes()
124 indent, "", ptea, *pte); in virt_dump_ptes()
/tools/testing/selftests/kvm/x86_64/
Demulator_error_test.c172 uint64_t gpa, pte; in main() local
207 pte = vm_get_page_table_entry(vm, VCPU_ID, MEM_REGION_GVA); in main()
208 vm_set_page_table_entry(vm, VCPU_ID, MEM_REGION_GVA, pte | (1ull << 36)); in main()
/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c183 uint64_t pte, *ptep; in pte_dump() local
188 for (pte = page; pte < page + ptrs_per_pte(vm) * 8; pte += 8) { in pte_dump()
189 ptep = addr_gpa2hva(vm, pte); in pte_dump()
192 fprintf(stream, "%*s%s: %lx: %lx at %p\n", indent, "", type[level], pte, *ptep, ptep); in pte_dump()
/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h74 #define PTE_GET_PFN(pte) (((pte) & PHYSICAL_PAGE_MASK) >> PAGE_SHIFT) argument
417 uint64_t pte);
/tools/lib/traceevent/plugins/
Dplugin_kvm.c448 unsigned long pte = args[0]; in process_is_writable_pte() local
449 return pte & PT_WRITABLE_MASK; in process_is_writable_pte()