Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/samples/nitro_enclaves/
Dne_ioctl_sample.c149 void *userspace_addr; member
262 ne_user_mem_region->userspace_addr = mmap(NULL, ne_user_mem_region->memory_size, in ne_alloc_user_mem_region()
266 if (ne_user_mem_region->userspace_addr == MAP_FAILED) { in ne_alloc_user_mem_region()
367 void *userspace_addr = ne_user_mem_regions[i].userspace_addr; in ne_load_enclave_image() local
383 memcpy(userspace_addr + memory_offset, in ne_load_enclave_image()
414 .userspace_addr = (__u64)ne_user_mem_region.userspace_addr, in ne_set_user_mem_region()
503 munmap(ne_user_mem_regions[i].userspace_addr, in ne_free_mem_regions()
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/
Dne_misc_dev.c752 if (!IS_ALIGNED(mem_region.userspace_addr, NE_MIN_MEM_REGION_SIZE)) { in ne_sanity_check_user_mem_region()
759 if ((mem_region.userspace_addr & (NE_MIN_MEM_REGION_SIZE - 1)) || in ne_sanity_check_user_mem_region()
760 !access_ok((void __user *)(unsigned long)mem_region.userspace_addr, in ne_sanity_check_user_mem_region()
771 u64 userspace_addr = ne_mem_region->userspace_addr; in ne_sanity_check_user_mem_region() local
773 if ((userspace_addr <= mem_region.userspace_addr && in ne_sanity_check_user_mem_region()
774 mem_region.userspace_addr < (userspace_addr + memory_size)) || in ne_sanity_check_user_mem_region()
775 (mem_region.userspace_addr <= userspace_addr && in ne_sanity_check_user_mem_region()
776 (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { in ne_sanity_check_user_mem_region()
889 gup_rc = get_user_pages(mem_region.userspace_addr + memory_size, 1, FOLL_GET, in ne_set_user_memory_region_ioctl()
958 ne_mem_region->userspace_addr = mem_region.userspace_addr; in ne_set_user_memory_region_ioctl()
Dne_misc_dev.h32 u64 userspace_addr; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dnitro_enclaves.h329 __u64 userspace_addr; member
Dvhost_types.h100 __u64 userspace_addr; member
Dkvm.h102 __u64 userspace_addr; /* start of the userspace allocated memory */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dnitro_enclaves.h58 __u64 userspace_addr; member
Dvhost_types.h78 __u64 userspace_addr; member
Dkvm.h90 __u64 userspace_addr; member
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dmmu.c406 hva_t hva = memslot->userspace_addr; in stage2_unmap_memslot()
437 gpa_t gpa = addr + (vm_start - memslot->userspace_addr); in stage2_unmap_memslot()
643 uaddr_start = memslot->userspace_addr; in fault_supports_stage2_huge_mapping()
1083 hva_start = max(start, memslot->userspace_addr); in handle_hva_to_gpa()
1084 hva_end = min(end, memslot->userspace_addr + in handle_hva_to_gpa()
1299 hva_t hva = mem->userspace_addr; in kvm_arch_prepare_memory_region()
1343 (vm_start - mem->userspace_addr); in kvm_arch_prepare_memory_region()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dvhost.h72 __u64 userspace_addr; member
Dkvm.h78 __u64 userspace_addr; member
/kernel/linux/linux-5.10/include/linux/
Dkvm_host.h347 unsigned long userspace_addr; member
1143 return slot->userspace_addr + offset * PAGE_SIZE; in __gfn_to_hva_memslot()
1154 gfn_t gfn_offset = (hva - slot->userspace_addr) >> PAGE_SHIFT; in hva_to_gfn_memslot()
/kernel/linux/linux-5.10/include/trace/events/
Dkvm.h273 PAGE_SHIFT) + slot->userspace_addr;
/kernel/linux/linux-5.10/tools/virtio/
Dvirtio_test.c148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
/kernel/linux/linux-5.10/arch/mips/kvm/
Dmmu.c462 hva_start = max(start, memslot->userspace_addr); in handle_hva_to_gpa()
463 hva_end = min(end, memslot->userspace_addr + in handle_hva_to_gpa()
Dmips.c247 mem->memory_size, mem->userspace_addr); in kvm_arch_commit_memory_region()
/kernel/linux/linux-5.10/virt/kvm/
Dkvm_main.c1331 if ((mem->userspace_addr & (PAGE_SIZE - 1)) || in __kvm_set_memory_region()
1332 (mem->userspace_addr != untagged_addr(mem->userspace_addr)) || in __kvm_set_memory_region()
1333 !access_ok((void __user *)(unsigned long)mem->userspace_addr, in __kvm_set_memory_region()
1364 new.userspace_addr = mem->userspace_addr; in __kvm_set_memory_region()
1374 if ((new.userspace_addr != old.userspace_addr) || in __kvm_set_memory_region()
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dtdp_mmu.c672 hva_start = max(start, memslot->userspace_addr); in kvm_tdp_mmu_handle_hva_range()
673 hva_end = min(end, memslot->userspace_addr + in kvm_tdp_mmu_handle_hva_range()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c615 addr = slot->userspace_addr; in kvmppc_uvmem_drop_pages()
Dbook3s_pr.c441 hva_start = max(start, memslot->userspace_addr); in do_kvm_unmap_hva()
442 hva_end = min(end, memslot->userspace_addr + in do_kvm_unmap_hva()
Dbook3s_64_mmu_hv.c772 hva_start = max(start, memslot->userspace_addr); in kvm_handle_hva_range()
773 hva_end = min(end, memslot->userspace_addr + in kvm_handle_hva_range()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dkvm.h102 __u64 userspace_addr; /* start of the userspace allocated memory */ member
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c715 region->region.userspace_addr = (uintptr_t) region->host_mem; in vm_userspace_mem_region_add()
/kernel/linux/linux-5.10/arch/s390/kvm/
Dkvm-s390.c5003 if (mem->userspace_addr & 0xffffful) in kvm_arch_prepare_memory_region()
5038 rc = gmap_map_segment(kvm->arch.gmap, mem->userspace_addr, in kvm_arch_commit_memory_region()

12