/kernel/linux/linux-5.10/samples/nitro_enclaves/ |
D | ne_ioctl_sample.c | 149 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/ |
D | ne_misc_dev.c | 752 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()
|
D | ne_misc_dev.h | 32 u64 userspace_addr; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | nitro_enclaves.h | 329 __u64 userspace_addr; member
|
D | vhost_types.h | 100 __u64 userspace_addr; member
|
D | kvm.h | 102 __u64 userspace_addr; /* start of the userspace allocated memory */ member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | nitro_enclaves.h | 58 __u64 userspace_addr; member
|
D | vhost_types.h | 78 __u64 userspace_addr; member
|
D | kvm.h | 90 __u64 userspace_addr; member
|
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | mmu.c | 406 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/ |
D | vhost.h | 72 __u64 userspace_addr; member
|
D | kvm.h | 78 __u64 userspace_addr; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | kvm_host.h | 347 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/ |
D | kvm.h | 273 PAGE_SHIFT) + slot->userspace_addr;
|
/kernel/linux/linux-5.10/tools/virtio/ |
D | virtio_test.c | 148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
|
/kernel/linux/linux-5.10/arch/mips/kvm/ |
D | mmu.c | 462 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()
|
D | mips.c | 247 mem->memory_size, mem->userspace_addr); in kvm_arch_commit_memory_region()
|
/kernel/linux/linux-5.10/virt/kvm/ |
D | kvm_main.c | 1331 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/ |
D | tdp_mmu.c | 672 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/ |
D | book3s_hv_uvmem.c | 615 addr = slot->userspace_addr; in kvmppc_uvmem_drop_pages()
|
D | book3s_pr.c | 441 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()
|
D | book3s_64_mmu_hv.c | 772 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/ |
D | kvm.h | 102 __u64 userspace_addr; /* start of the userspace allocated memory */ member
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 715 region->region.userspace_addr = (uintptr_t) region->host_mem; in vm_userspace_mem_region_add()
|
/kernel/linux/linux-5.10/arch/s390/kvm/ |
D | kvm-s390.c | 5003 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()
|