Home
last modified time | relevance | path

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

/Linux-v6.1/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-v6.1/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-v6.1/include/uapi/linux/
Dnitro_enclaves.h329 __u64 userspace_addr; member
Dvhost_types.h100 __u64 userspace_addr; member
Dkvm.h103 __u64 userspace_addr; /* start of the userspace allocated memory */ member
/Linux-v6.1/arch/arm64/kvm/
Dmmu.c725 hva_t hva = memslot->userspace_addr; in stage2_unmap_memslot()
757 gpa_t gpa = addr + (vm_start - memslot->userspace_addr); in stage2_unmap_memslot()
956 uaddr_start = memslot->userspace_addr; in fault_supports_stage2_huge_mapping()
1721 hva = new->userspace_addr; in kvm_arch_prepare_memory_region()
/Linux-v6.1/virt/kvm/
Dkvm_main.c606 hva_start = max(range->start, slot->userspace_addr); in __kvm_handle_hva_range()
607 hva_end = min(range->end, slot->userspace_addr + in __kvm_handle_hva_range()
1499 new->hva_node[idx].start = new->userspace_addr; in kvm_replace_memslot()
1500 new->hva_node[idx].last = new->userspace_addr + in kvm_replace_memslot()
1710 dest->userspace_addr = src->userspace_addr; in kvm_copy_memslot()
1945 if ((mem->userspace_addr & (PAGE_SIZE - 1)) || in __kvm_set_memory_region()
1946 (mem->userspace_addr != untagged_addr(mem->userspace_addr)) || in __kvm_set_memory_region()
1947 !access_ok((void __user *)(unsigned long)mem->userspace_addr, in __kvm_set_memory_region()
1988 if ((mem->userspace_addr != old->userspace_addr) || in __kvm_set_memory_region()
2015 new->userspace_addr = mem->userspace_addr; in __kvm_set_memory_region()
/Linux-v6.1/tools/virtio/
Dvirtio_test.c148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
/Linux-v6.1/include/linux/
Dkvm_host.h574 unsigned long userspace_addr; member
1699 return slot->userspace_addr + offset * PAGE_SIZE; in __gfn_to_hva_memslot()
1710 gfn_t gfn_offset = (hva - slot->userspace_addr) >> PAGE_SHIFT; in hva_to_gfn_memslot()
/Linux-v6.1/arch/riscv/kvm/
Dmmu.c475 hva = new->userspace_addr; in kvm_arch_prepare_memory_region()
/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c775 .userspace_addr = (uintptr_t)hva, in __vm_set_user_memory_region()
933 region->region.userspace_addr = (uintptr_t) region->host_mem; in vm_userspace_mem_region_add()
/Linux-v6.1/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c617 addr = slot->userspace_addr; in kvmppc_uvmem_drop_pages()
Dbook3s_hv.c5184 hva = memslot->userspace_addr; in kvmppc_hv_setup_htab_rma()
/Linux-v6.1/tools/include/uapi/linux/
Dkvm.h103 __u64 userspace_addr; /* start of the userspace allocated memory */ member
/Linux-v6.1/drivers/vhost/
Dvhost.c1470 region->userspace_addr, in vhost_set_memory()
/Linux-v6.1/arch/s390/kvm/
Dkvm-s390.c5590 if (new->userspace_addr & 0xffffful) in kvm_arch_prepare_memory_region()
5622 rc = gmap_map_segment(kvm->arch.gmap, new->userspace_addr, in kvm_arch_commit_memory_region()
/Linux-v6.1/arch/x86/kvm/
Dx86.c12513 hva = slot->userspace_addr; in __x86_set_memory_region()
12522 m.userspace_addr = hva; in __x86_set_memory_region()
12654 ugfn = slot->userspace_addr >> PAGE_SHIFT; in kvm_alloc_memslot_metadata()
/Linux-v6.1/Documentation/virt/kvm/
Dapi.rst1332 __u64 userspace_addr; /* start of the userspace allocated memory */
1357 field userspace_addr, which must point at user addressable memory for
1361 On architectures that support a form of address tagging, userspace_addr must
1364 It is recommended that the lower 21 bits of guest_phys_addr and userspace_addr