Home
last modified time | relevance | path

Searched refs:phys_to_virt (Results 1 – 24 of 24) sorted by relevance

/kvm-unit-tests/x86/
H A Dpku.c82 *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) &= ~PT_USER_MASK; in main()
83 … *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) |= ((unsigned long)pkey << PTE_PKEY_BIT); in main()
88 *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) &= ~USER_BASE; in main()
89 … *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) |= ((unsigned long)pkey << PTE_PKEY_BIT); in main()
H A Dpks.c84 … *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) |= ((unsigned long)pkey << PTE_PKEY_BIT); in main()
90 *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) &= ~SUPER_BASE; in main()
91 *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) &= ~PT_USER_MASK; in main()
92 … *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) |= ((unsigned long)pkey << PTE_PKEY_BIT); in main()
H A Dsmap.c65 *get_pte(phys_to_virt(read_cr3()), USER_ADDR(test)) &= ~PT_WRITABLE_MASK; in check_smap_nowp()
86 *get_pte(phys_to_virt(read_cr3()), USER_ADDR(test)) |= PT_WRITABLE_MASK; in check_smap_nowp()
109 *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) &= ~PT_USER_MASK; in main()
115 *get_pte(phys_to_virt(read_cr3()), phys_to_virt(i)) &= ~USER_BASE; in main()
H A Drmap_chain.c24 install_page(phys_to_virt(read_cr3()), virt_to_phys(target_page), in main()
40 install_pte(phys_to_virt(read_cr3()), 1, virt_addr, in main()
H A Dasyncpf.c80 install_pte(phys_to_virt(read_cr3()), 1, virt, phys | PT_PRESENT_MASK | PT_WRITABLE_MASK, 0); in handle_interrupt()
98 phys = virt_to_pte_phys(phys_to_virt(read_cr3()), virt); in handle_pf()
99 install_pte(phys_to_virt(read_cr3()), 1, virt, phys, 0); in handle_pf()
H A Dcmpxchg8b.c23 test_cmpxchg8b(phys_to_virt(read_cr3()) + 4088); in main()
H A Dhypercall.c76 install_pte(phys_to_virt(read_cr3()), 1, topmost, in main()
H A Deventinj.c60 install_pte(phys_to_virt(read_cr3()), 1, stack_va, in do_pf_tss()
378 install_pte(phys_to_virt(read_cr3()), 1, stack_va, in main()
397 install_pte(phys_to_virt(read_cr3()), 1, stack_va, in main()
H A Dlam.c261 test_ptr(phys_to_virt(IORAM_BASE_PHYS), true); in test_lam_user()
269 test_ptr(phys_to_virt(IORAM_BASE_PHYS), true); in test_lam_user()
H A Dtaskswitch2.c70 install_pte(phys_to_virt(read_cr3()), 1, fault_addr, in do_pf_tss()
H A Dvmx.h973 *vmcs = (pa == -1ull) ? NULL : phys_to_virt(pa); in vmcs_save()
H A Dvmx_tests.c65 return (u32 *)phys_to_virt(vmcs_read(APIC_VIRT_ADDR)); in get_vapic_page()
70 return (u64 *)phys_to_virt(vmcs_read(POSTED_INTR_DESC_ADDR)); in get_pi_desc()
4134 *(u32 *)phys_to_virt(vmcs_read(APIC_VIRT_ADDR) + APIC_TASKPRI) = vtpr; in set_vtpr()
5252 (pgd_t *)phys_to_virt(guest_cr3 & ~X86_CR3_PCID_MASK), 0, in vmx_mtf_pdpte_test()
8161 vmcs_write(GUEST_RIP, (u64) phys_to_virt(vmcs_read(GUEST_RIP))); in unsetup_unrestricted_guest()
8162 vmcs_write(GUEST_RSP, (u64) phys_to_virt(vmcs_read(GUEST_RSP))); in unsetup_unrestricted_guest()
H A Dvmx.c882 pt = phys_to_virt(pt[offset] & EPT_ADDR_MASK); in install_ept_entry()
/kvm-unit-tests/lib/x86/asm/
H A Dio.h54 #define phys_to_virt phys_to_virt macro
55 static inline void *phys_to_virt(unsigned long phys) in phys_to_virt() function
/kvm-unit-tests/lib/riscv/asm/
H A Dio.h82 #define phys_to_virt phys_to_virt macro
83 void *phys_to_virt(phys_addr_t address);
/kvm-unit-tests/lib/arm64/asm/
H A Dio.h86 #define phys_to_virt phys_to_virt macro
87 static inline void *phys_to_virt(phys_addr_t x) in phys_to_virt() function
/kvm-unit-tests/lib/arm/asm/
H A Dio.h92 #define phys_to_virt phys_to_virt macro
93 static inline void *phys_to_virt(phys_addr_t x) in phys_to_virt() function
/kvm-unit-tests/lib/x86/
H A Dintel-iommu.c156 root = (uint64_t *)(phys_to_virt(root[offset] & in vtd_install_pte()
181 vtd_re_t *re = phys_to_virt(vtd_root_table()); in vtd_map_range()
201 ce = phys_to_virt(re->context_table_p << VTD_PAGE_SHIFT); in vtd_map_range()
221 slptptr = phys_to_virt(ce->slptptr << VTD_PAGE_SHIFT); in vtd_map_range()
306 vtd_irte_t *irte = phys_to_virt(vtd_ir_table()); in vtd_setup_msi()
334 vtd_irte_t *irte = phys_to_virt(vtd_ir_table()); in vtd_setup_ioapic_irq()
H A Dvm.h54 return phys_to_virt(read_cr3()); in current_page_table()
H A Dvm.c33 pt = phys_to_virt(pt[offset] & PT_ADDR_MASK); in install_pte()
69 pt = phys_to_virt(pte & PT_ADDR_MASK); in find_pte_level()
/kvm-unit-tests/lib/asm-generic/
H A Dio.h210 #ifndef phys_to_virt
211 static inline void *phys_to_virt(unsigned long address) in phys_to_virt() function
/kvm-unit-tests/lib/
H A Dvmalloc.c174 free_page(phys_to_virt(page)); in vm_free()
188 free_page(phys_to_virt(page)); in vm_free()
H A Dalloc_phys.c143 return phys_to_virt(addr); in early_memalign()
/kvm-unit-tests/lib/riscv/
H A Dmmu.c212 void *phys_to_virt(phys_addr_t address) in phys_to_virt() function