Home
last modified time | relevance | path

Searched refs:vaddr (Results 1 – 25 of 27) sorted by relevance

12

/xen/xen/drivers/acpi/apei/
A Dapei-io.c46 void __iomem *vaddr; member
71 return map->vaddr + (paddr - map->paddr); in __apei_ioremap_fast()
106 void __iomem *vaddr; in apei_pre_map() local
111 vaddr = __apei_ioremap_fast(paddr, size); in apei_pre_map()
113 if (vaddr) in apei_pre_map()
114 return vaddr; in apei_pre_map()
120 vaddr = apei_range_map(paddr, size); in apei_pre_map()
121 if (!vaddr) { in apei_pre_map()
130 map->vaddr = vaddr; in apei_pre_map()
195 void __iomem *vaddr; in apei_pre_map_gar() local
[all …]
A Derst.c75 void __iomem *vaddr; member
632 memcpy(erst_erange.vaddr, record, record->record_length); in erst_write()
633 rcd_erange = erst_erange.vaddr; in erst_write()
672 rcd_tmp = erst_erange.vaddr + offset; in __erst_read()
830 erst_erange.vaddr = apei_pre_map(erst_erange.base, erst_erange.size); in erst_init()
831 if (!erst_erange.vaddr) { in erst_init()
/xen/tools/libxl/
A Dlibxl_genid.c91 void *vaddr; in libxl__ms_vm_genid_set() local
93 vaddr = xc_map_foreign_range(ctx->xch, domid, XC_PAGE_SIZE, in libxl__ms_vm_genid_set()
96 if (vaddr == NULL) { in libxl__ms_vm_genid_set()
100 memcpy(vaddr + (paddr & ~XC_PAGE_MASK), genid, 2 * sizeof(*genid)); in libxl__ms_vm_genid_set()
101 munmap(vaddr, XC_PAGE_SIZE); in libxl__ms_vm_genid_set()
/xen/xen/arch/x86/
A Ddebug.c30 dbg_hvm_va2mfn(dbgva_t vaddr, struct domain *dp, int toaddr, gfn_t *gfn) in dbg_hvm_va2mfn() argument
36 *gfn = _gfn(paging_gva_to_gfn(dp->vcpu[0], vaddr, &pfec)); in dbg_hvm_va2mfn()
67 dbg_pv_va2mfn(dbgva_t vaddr, struct domain *dp, uint64_t pgd3val) in dbg_pv_va2mfn() argument
79 l4e = l4t[l4_table_offset(vaddr)]; in dbg_pv_va2mfn()
86 l3e = l3t[l3_table_offset(vaddr)]; in dbg_pv_va2mfn()
95 l2e = l2t[l2_table_offset(vaddr)]; in dbg_pv_va2mfn()
103 l1e = l1t[l1_table_offset(vaddr)]; in dbg_pv_va2mfn()
A Dmachine_kexec.c29 int machine_kexec_add_page(struct kexec_image *image, unsigned long vaddr, in machine_kexec_add_page() argument
52 l4 += l4_table_offset(vaddr); in machine_kexec_add_page()
64 l3 += l3_table_offset(vaddr); in machine_kexec_add_page()
76 l2 += l2_table_offset(vaddr); in machine_kexec_add_page()
88 l1 += l1_table_offset(vaddr); in machine_kexec_add_page()
/xen/xen/include/asm-x86/
A Dfixmap.h87 static inline unsigned long virt_to_fix(const unsigned long vaddr) in virt_to_fix() argument
89 BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START); in virt_to_fix()
90 return __virt_to_fix(vaddr); in virt_to_fix()
A Dpaging.h109 unsigned long vaddr, mfn_t gmfn);
111 void (*trace_emul_write_val )(const void *ptr, unsigned long vaddr,
/xen/xen/arch/x86/mm/shadow/
A Dhvm.c47 static void *sh_emulate_map_dest(struct vcpu *v, unsigned long vaddr,
398 static mfn_t emulate_gva_to_mfn(struct vcpu *v, unsigned long vaddr, in emulate_gva_to_mfn() argument
408 gfn = paging_get_hostmode(v)->gva_to_gfn(v, NULL, vaddr, &pfec); in emulate_gva_to_mfn()
411 x86_emul_pagefault(pfec, vaddr, &sh_ctxt->ctxt); in emulate_gva_to_mfn()
454 static void *sh_emulate_map_dest(struct vcpu *v, unsigned long vaddr, in sh_emulate_map_dest() argument
472 sh_ctxt->mfn[0] = emulate_gva_to_mfn(v, vaddr, sh_ctxt); in sh_emulate_map_dest()
484 if ( vaddr & (bytes - 1) ) in sh_emulate_map_dest()
487 if ( likely(((vaddr + bytes - 1) & PAGE_MASK) == (vaddr & PAGE_MASK)) ) in sh_emulate_map_dest()
491 map = map_domain_page(sh_ctxt->mfn[0]) + (vaddr & ~PAGE_MASK); in sh_emulate_map_dest()
506 v, (vaddr + bytes - 1) & PAGE_MASK, sh_ctxt); in sh_emulate_map_dest()
[all …]
A Dcommon.c2124 l1_pgentry_t *vaddr; in sh_remove_shadow_via_pointer() local
2134 vaddr = map_domain_page(pmfn) + (sp->up & (PAGE_SIZE - 1)); in sh_remove_shadow_via_pointer()
2135 ASSERT(mfn_eq(l1e_get_mfn(*vaddr), smfn)); in sh_remove_shadow_via_pointer()
2145 SHADOW_INTERNAL_NAME(sh_clear_shadow_entry, 2)(d, vaddr, pmfn); in sh_remove_shadow_via_pointer()
2150 SHADOW_INTERNAL_NAME(sh_clear_shadow_entry, 3)(d, vaddr, pmfn); in sh_remove_shadow_via_pointer()
2157 SHADOW_INTERNAL_NAME(sh_clear_shadow_entry, 4)(d, vaddr, pmfn); in sh_remove_shadow_via_pointer()
2162 unmap_domain_page(vaddr); in sh_remove_shadow_via_pointer()
A Dmulti.c2714 static void trace_emulate_write_val(const void *ptr, unsigned long vaddr, in trace_emulate_write_val() argument
2718 if ( vaddr == this_cpu(trace_emulate_initial_va) ) in trace_emulate_write_val()
2720 else if ( (vaddr & ~(GUEST_PTE_SIZE - 1)) == in trace_emulate_write_val()
4212 static int sh_guess_wrmap(struct vcpu *v, unsigned long vaddr, mfn_t gmfn) in sh_guess_wrmap() argument
4240 sl4p = sh_linear_l4_table(v) + shadow_l4_linear_offset(vaddr); in sh_guess_wrmap()
4243 sl3p = sh_linear_l3_table(v) + shadow_l3_linear_offset(vaddr); in sh_guess_wrmap()
4248 + shadow_l3_linear_offset(vaddr); in sh_guess_wrmap()
4252 sl2p = sh_linear_l2_table(v) + shadow_l2_linear_offset(vaddr); in sh_guess_wrmap()
4255 sl1p = sh_linear_l1_table(v) + shadow_l1_linear_offset(vaddr); in sh_guess_wrmap()
/xen/xen/lib/x86/
A Dprivate.h31 static inline bool test_bit(unsigned int bit, const void *vaddr) in test_bit() argument
33 const char *addr = vaddr; in test_bit()
/xen/tools/libxc/
A Dxc_private.c419 void *vaddr = xc_map_foreign_range( in xc_copy_to_domain_page() local
421 if ( vaddr == NULL ) in xc_copy_to_domain_page()
423 memcpy(vaddr, src_page, PAGE_SIZE); in xc_copy_to_domain_page()
424 munmap(vaddr, PAGE_SIZE); in xc_copy_to_domain_page()
435 void *vaddr = xc_map_foreign_range( in xc_clear_domain_pages() local
437 if ( vaddr == NULL ) in xc_clear_domain_pages()
439 memset(vaddr, 0, size); in xc_clear_domain_pages()
440 munmap(vaddr, size); in xc_clear_domain_pages()
A Dxc_core.c819 void *vaddr; in xc_domain_dumpcore_via_callback() local
861 vaddr = xc_map_foreign_range( in xc_domain_dumpcore_via_callback()
863 if ( vaddr == NULL ) in xc_domain_dumpcore_via_callback()
865 memcpy(dump_mem, vaddr, PAGE_SIZE); in xc_domain_dumpcore_via_callback()
866 munmap(vaddr, PAGE_SIZE); in xc_domain_dumpcore_via_callback()
A Dxc_sr_save_x86_pv.c7 static inline bool is_canonical_address(xen_vaddr_t vaddr) in is_canonical_address() argument
9 return ((int64_t)vaddr >> 47) == ((int64_t)vaddr >> 63); in is_canonical_address()
/xen/tools/include/xen-sys/FreeBSD/
A Dgntdev.h185 uint64_t vaddr; member
/xen/tools/libxc/include/
A Dxc_dom.h410 xen_vaddr_t vaddr, in xc_dom_vaddr_to_ptr() argument
414 xen_pfn_t page = (vaddr - dom->parms.virt_base) / page_size; in xc_dom_vaddr_to_ptr()
415 unsigned int offset = (vaddr - dom->parms.virt_base) % page_size; in xc_dom_vaddr_to_ptr()
/xen/xen/include/xen/
A Dkexec.h45 int machine_kexec_add_page(struct kexec_image *image, unsigned long vaddr,
/xen/tools/include/xen-sys/Linux/
A Dgntdev.h97 uint64_t vaddr; member
/xen/xen/arch/arm/efi/
A Defi-boot.h12 void __flush_dcache_area(const void *vaddr, unsigned long size);
603 static void __init efi_arch_flush_dcache_area(const void *vaddr, UINTN size) in efi_arch_flush_dcache_area() argument
605 __flush_dcache_area(vaddr, size); in efi_arch_flush_dcache_area()
/xen/xen/drivers/passthrough/amd/
A Diommu_guest.c328 void *vaddr; in do_completion_wait() local
341 vaddr = map_domain_page(get_gfn(d, gfn ,&p2mt)); in do_completion_wait()
344 write_u64_atomic((uint64_t *)(vaddr + (gaddr_64 & (PAGE_SIZE-1))), in do_completion_wait()
346 unmap_domain_page(vaddr); in do_completion_wait()
/xen/xen/arch/arm/
A Dmm.c817 vaddr_t vaddr; in setup_xenheap_mappings() local
841 vaddr = (vaddr_t)__mfn_to_virt(base_mfn) & FIRST_MASK; in setup_xenheap_mappings()
845 int slot = zeroeth_table_offset(vaddr); in setup_xenheap_mappings()
879 write_pte(&first[first_table_offset(vaddr)], pte); in setup_xenheap_mappings()
882 vaddr += FIRST_SIZE; in setup_xenheap_mappings()
A Dgic-v3-its.c281 static bool check_baser_phys_addr(void *vaddr, unsigned int page_bits) in check_baser_phys_addr() argument
283 paddr_t paddr = virt_to_maddr(vaddr); in check_baser_phys_addr()
/xen/tools/libs/gnttab/
A Dfreebsd.c178 get_offset.vaddr = (unsigned long)start_address; in osdep_gnttab_unmap()
A Dlinux.c211 get_offset.vaddr = (unsigned long)start_address; in osdep_gnttab_unmap()
/xen/xen/drivers/passthrough/vtd/
A Diommu.c206 u64 *vaddr; in alloc_pgtable_maddr() local
217 vaddr = __map_domain_page(cur_pg); in alloc_pgtable_maddr()
218 memset(vaddr, 0, PAGE_SIZE); in alloc_pgtable_maddr()
220 sync_cache(vaddr, PAGE_SIZE); in alloc_pgtable_maddr()
221 unmap_domain_page(vaddr); in alloc_pgtable_maddr()

Completed in 76 milliseconds

12