Home
last modified time | relevance | path

Searched refs:userspace_addr (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/samples/nitro_enclaves/
Dne_ioctl_sample.c149 void *userspace_addr; member
261 ne_user_mem_region->userspace_addr = mmap(NULL, ne_user_mem_region->memory_size, in ne_alloc_user_mem_region()
265 if (ne_user_mem_region->userspace_addr == MAP_FAILED) { in ne_alloc_user_mem_region()
366 void *userspace_addr = ne_user_mem_regions[i].userspace_addr; in ne_load_enclave_image() local
382 memcpy(userspace_addr + memory_offset, in ne_load_enclave_image()
413 .userspace_addr = (__u64)ne_user_mem_region.userspace_addr, in ne_set_user_mem_region()
502 munmap(ne_user_mem_regions[i].userspace_addr, in ne_free_mem_regions()
/linux-6.6.21/drivers/virt/nitro_enclaves/
Dne_misc_dev.c763 if (!IS_ALIGNED(mem_region.userspace_addr, NE_MIN_MEM_REGION_SIZE)) { in ne_sanity_check_user_mem_region()
770 if ((mem_region.userspace_addr & (NE_MIN_MEM_REGION_SIZE - 1)) || in ne_sanity_check_user_mem_region()
771 !access_ok((void __user *)(unsigned long)mem_region.userspace_addr, in ne_sanity_check_user_mem_region()
782 u64 userspace_addr = ne_mem_region->userspace_addr; in ne_sanity_check_user_mem_region() local
784 if ((userspace_addr <= mem_region.userspace_addr && in ne_sanity_check_user_mem_region()
785 mem_region.userspace_addr < (userspace_addr + memory_size)) || in ne_sanity_check_user_mem_region()
786 (mem_region.userspace_addr <= userspace_addr && in ne_sanity_check_user_mem_region()
787 (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { in ne_sanity_check_user_mem_region()
966 gup_rc = get_user_pages_unlocked(mem_region.userspace_addr + memory_size, 1, in ne_set_user_memory_region_ioctl()
1014 ne_mem_region->userspace_addr = mem_region.userspace_addr; in ne_set_user_memory_region_ioctl()
Dne_misc_dev.h32 u64 userspace_addr; member
/linux-6.6.21/include/uapi/linux/
Dnitro_enclaves.h329 __u64 userspace_addr; member
Dvhost_types.h116 __u64 userspace_addr; member
Dkvm.h95 __u64 userspace_addr; /* start of the userspace allocated memory */ member
/linux-6.6.21/tools/testing/selftests/kvm/aarch64/
Dpage_fault_test.c356 args->hva = (void *)region->region.userspace_addr; in setup_uffd_args()
410 void *hva = (void *)region->region.userspace_addr; in punch_hole_in_backing_store()
432 hva = (void *)region->region.userspace_addr; in mmio_on_test_gpa_handler()
534 hva = (void *)region->region.userspace_addr; in load_exec_code_for_test()
/linux-6.6.21/virt/kvm/
Dkvm_main.c611 hva_start = max(range->start, slot->userspace_addr); in __kvm_handle_hva_range()
612 hva_end = min(range->end, slot->userspace_addr + in __kvm_handle_hva_range()
1520 new->hva_node[idx].start = new->userspace_addr; in kvm_replace_memslot()
1521 new->hva_node[idx].last = new->userspace_addr + in kvm_replace_memslot()
1739 dest->userspace_addr = src->userspace_addr; in kvm_copy_memslot()
1974 if ((mem->userspace_addr & (PAGE_SIZE - 1)) || in __kvm_set_memory_region()
1975 (mem->userspace_addr != untagged_addr(mem->userspace_addr)) || in __kvm_set_memory_region()
1976 !access_ok((void __user *)(unsigned long)mem->userspace_addr, in __kvm_set_memory_region()
2017 if ((mem->userspace_addr != old->userspace_addr) || in __kvm_set_memory_region()
2044 new->userspace_addr = mem->userspace_addr; in __kvm_set_memory_region()
/linux-6.6.21/arch/arm64/kvm/
Dmmu.c944 hva_t hva = memslot->userspace_addr; in stage2_unmap_memslot()
976 gpa_t gpa = addr + (vm_start - memslot->userspace_addr); in stage2_unmap_memslot()
1227 uaddr_start = memslot->userspace_addr; in fault_supports_stage2_huge_mapping()
2027 hva = new->userspace_addr; in kvm_arch_prepare_memory_region()
/linux-6.6.21/arch/s390/kvm/
Dpv.c263 s390_uv_destroy_range(kvm->mm, slot->userspace_addr, slot->userspace_addr + len); in kvm_s390_destroy_lower_2g()
Dkvm-s390.c5773 if (new->userspace_addr & 0xffffful) in kvm_arch_prepare_memory_region()
5822 rc = gmap_map_segment(kvm->arch.gmap, new->userspace_addr, in kvm_arch_commit_memory_region()
/linux-6.6.21/tools/virtio/
Dvirtio_test.c148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
/linux-6.6.21/include/linux/
Dkvm_host.h587 unsigned long userspace_addr; member
1728 return slot->userspace_addr + offset * PAGE_SIZE; in __gfn_to_hva_memslot()
1739 gfn_t gfn_offset = (hva - slot->userspace_addr) >> PAGE_SHIFT; in hva_to_gfn_memslot()
/linux-6.6.21/arch/riscv/kvm/
Dmmu.c469 hva = new->userspace_addr; in kvm_arch_prepare_memory_region()
/linux-6.6.21/tools/testing/selftests/kvm/lib/
Dkvm_util.c886 .userspace_addr = (uintptr_t)hva, in __vm_set_user_memory_region()
1045 region->region.userspace_addr = (uintptr_t) region->host_mem; in vm_userspace_mem_region_add()
/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c622 addr = slot->userspace_addr; in kvmppc_uvmem_drop_pages()
Dbook3s_hv.c5218 hva = memslot->userspace_addr; in kvmppc_hv_setup_htab_rma()
/linux-6.6.21/tools/include/uapi/linux/
Dkvm.h95 __u64 userspace_addr; /* start of the userspace allocated memory */ member
/linux-6.6.21/drivers/vhost/
Dvhost.c1751 region->userspace_addr, in vhost_set_memory()
/linux-6.6.21/arch/x86/kvm/
Dx86.c12457 hva = slot->userspace_addr; in __x86_set_memory_region()
12466 m.userspace_addr = hva; in __x86_set_memory_region()
12598 ugfn = slot->userspace_addr >> PAGE_SHIFT; in kvm_alloc_memslot_metadata()
/linux-6.6.21/Documentation/virt/kvm/
Dapi.rst1309 __u64 userspace_addr; /* start of the userspace allocated memory */
1334 field userspace_addr, which must point at user addressable memory for
1338 On architectures that support a form of address tagging, userspace_addr must
1341 It is recommended that the lower 21 bits of guest_phys_addr and userspace_addr