/kvm-unit-tests/lib/x86/asm/ |
H A D | io.h | 48 #define virt_to_phys virt_to_phys macro 49 static inline unsigned long virt_to_phys(const void *virt) in virt_to_phys() function
|
/kvm-unit-tests/lib/riscv/asm/ |
H A D | io.h | 79 #define virt_to_phys virt_to_phys macro 80 phys_addr_t virt_to_phys(volatile void *address);
|
/kvm-unit-tests/lib/arm64/asm/ |
H A D | io.h | 80 #define virt_to_phys virt_to_phys macro 81 static inline phys_addr_t virt_to_phys(const volatile void *x) in virt_to_phys() function
|
/kvm-unit-tests/lib/arm/asm/ |
H A D | io.h | 86 #define virt_to_phys virt_to_phys macro 87 static inline phys_addr_t virt_to_phys(const volatile void *x) in virt_to_phys() function
|
/kvm-unit-tests/x86/ |
H A D | eventinj.c | 39 flush_phys_addr(virt_to_phys(&__l)); \ 48 flush_phys_addr(virt_to_phys((void*)ptr.base)); in flush_idt_page() 187 do_iret(virt_to_phys(s), iret_stack); in nmi_iret_isr() 369 stack_phys = (ulong)virt_to_phys(alloc_page()); in main() 413 cr3[i] = virt_to_phys(pt) | PT_PRESENT_MASK | PT_WRITABLE_MASK; in main() 414 pt[0] = virt_to_phys(pt) | PT_PRESENT_MASK | PT_WRITABLE_MASK; in main() 420 write_cr3(virt_to_phys(cr3)); in main()
|
H A D | svm.c | 161 u64 vmcb_phys = virt_to_phys(vmcb); in vmcb_ident() 194 ctrl->iopm_base_pa = virt_to_phys(io_bitmap); in vmcb_ident() 195 ctrl->msrpm_base_pa = virt_to_phys(msr_bitmap); in vmcb_ident() 235 : "a" (virt_to_phys(vmcb)) in __svm_vmrun() 250 u64 vmcb_phys = virt_to_phys(vmcb); in test_run() 297 wrmsr(MSR_VM_HSAVE_PA, virt_to_phys(hsave)); in set_additional_vcpu_msr() 320 wrmsr(MSR_VM_HSAVE_PA, virt_to_phys(hsave)); in setup_svm()
|
H A D | rmap_chain.c | 24 install_page(phys_to_virt(read_cr3()), virt_to_phys(target_page), in main()
|
H A D | hyperv_synic.c | 97 wrmsr(HV_X64_MSR_SIMP, (u64)virt_to_phys(alloc_page()) | in synic_test_prepare() 99 wrmsr(HV_X64_MSR_SIEFP, (u64)virt_to_phys(alloc_page())| in synic_test_prepare()
|
H A D | hypercall.c | 77 virt_to_phys(data1) | PT_PRESENT_MASK | PT_WRITABLE_MASK, 0); in main()
|
H A D | hyperv_connections.c | 54 (u64)virt_to_phys(hypercall_page) | HV_X64_MSR_HYPERCALL_ENABLE); in setup_hypercall() 111 (u64)virt_to_phys(hv->msg_page) | HV_SYNIC_SIMP_ENABLE); in setup_cpu() 113 (u64)virt_to_phys(hv->evt_page) | HV_SYNIC_SIEFP_ENABLE); in setup_cpu() 151 virt_to_phys(msg), 0); in do_msg()
|
H A D | cet.c | 90 shstk_phys = (unsigned long)virt_to_phys(alloc_page()); in main()
|
H A D | asyncpf.c | 133 wrmsr(MSR_KVM_ASYNC_PF_EN, virt_to_phys((void*)&apf_reason) | in main()
|
H A D | intel-iommu.c | 41 vtd_map_range(dev->pci_dev.bdf, 0, virt_to_phys(page), PAGE_SIZE); in vtd_test_dmar()
|
/kvm-unit-tests/powerpc/ |
H A D | mmu.c | 71 p[0] = virt_to_phys(m[0]); in test_tlbie() 74 p[1] = virt_to_phys(m[1]); in test_tlbie() 135 p[0] = virt_to_phys(m[0]); in test_tlbie_this_cpu() 138 p[1] = virt_to_phys(m[1]); in test_tlbie_this_cpu()
|
/kvm-unit-tests/lib/x86/ |
H A D | intel-iommu.c | 128 vtd_writeq(DMAR_RTADDR_REG, virt_to_phys(root)); in vtd_setup_root_table() 138 vtd_writeq(DMAR_IRTA_REG, virt_to_phys(root) | 0xf); in vtd_setup_ir_table() 154 root[offset] = virt_to_phys(page) | VTD_PTE_RW; in vtd_install_pte() 196 re->context_table_p = virt_to_phys(ce) >> VTD_PAGE_SHIFT; in vtd_map_range() 213 ce->slptptr = virt_to_phys(slptptr) >> VTD_PAGE_SHIFT; in vtd_map_range()
|
H A D | vm.c | 28 pt[offset] = virt_to_phys(new_pt) | PT_PRESENT_MASK | PT_WRITABLE_MASK | pte_opt_mask; in install_pte() 200 write_cr3(virt_to_phys(cr3)); in setup_mmu() 259 pte |= virt_to_phys(new_pt); in split_large_page()
|
/kvm-unit-tests/lib/arm/ |
H A D | gic-v3.c | 177 prop_val = (u64)(virt_to_phys(gicv3_data.lpi_prop)) | 13; in gicv3_lpi_alloc_tables() 190 pend_val = (u64)(virt_to_phys(gicv3_data.lpi_pend[cpu])); in gicv3_lpi_alloc_tables()
|
/kvm-unit-tests/lib/arm64/ |
H A D | gic-v3-its.c | 59 val |= virt_to_phys(baser->table_addr) | GITS_BASER_VALID; in its_baser_alloc_table() 75 cbaser = virt_to_phys(its_data.cmd_base) | (SZ_64K / SZ_4K - 1) | GITS_CBASER_VALID; in its_cmd_queue_init()
|
/kvm-unit-tests/lib/asm-generic/ |
H A D | io.h | 203 #ifndef virt_to_phys 204 static inline unsigned long virt_to_phys(volatile void *address) in virt_to_phys() function
|
/kvm-unit-tests/riscv/ |
H A D | sbi.c | 562 ret = sbi_hart_start(hartid, virt_to_phys(&start_cpu), 0); in hart_check_already_started() 572 ret = sbi_hart_start(-1UL, virt_to_phys(&start_cpu), 0); in hart_start_invalid_hartid() 623 virt_to_phys(&sbi_hsm_check_non_retentive_suspend), virt_to_phys(params), in hart_non_retentive_suspend() 645 virt_to_phys(&sbi_hsm_check_non_retentive_suspend), virt_to_phys(params), in hart_non_retentive_suspend_with_msb_set() 793 ret = sbi_hart_start(hartid, virt_to_phys(&sbi_hsm_check_hart_start), in check_hsm() 794 virt_to_phys(&sbi_hsm_hart_start_params[cpu * SBI_HSM_NUM_OF_PARAMS])); in check_hsm() 1159 phys_addr_t paddr = virt_to_phys((void *)s); in dbcn_write_test() 1312 params->resume_addr = virt_to_phys(sbi_susp_resume); in susp_basic_prep() 1313 params->opaque = virt_to_phys(ctx); in susp_basic_prep()
|
/kvm-unit-tests/lib/ |
H A D | vmalloc.c | 110 install_page(page_root, virt_to_phys(alloc_page()), p); in vm_alloc_one_page() 152 pa = virt_to_phys(alloc_page()); in vm_memalign()
|
/kvm-unit-tests/lib/riscv/ |
H A D | sbi.c | 46 phys_addr_t p = virt_to_phys(values); in sbi_sse_read_attrs() 63 phys_addr_t p = virt_to_phys(values); in sbi_sse_write_attrs()
|
H A D | smp.c | 46 sp_phys = virt_to_phys(sp_mem); in __smp_boot_secondary()
|
H A D | mmu.c | 201 phys_addr_t virt_to_phys(volatile void *address) in virt_to_phys() function 216 assert(virt_to_phys(__va(address)) == address); in phys_to_virt()
|
H A D | io.c | 125 phys_addr_t addr = virt_to_phys((void *)s); in sbi_puts()
|