/Linux-v6.1/samples/nitro_enclaves/ |
D | ne_ioctl_sample.c | 149 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/ |
D | ne_misc_dev.c | 763 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()
|
D | ne_misc_dev.h | 32 u64 userspace_addr; member
|
/Linux-v6.1/include/uapi/linux/ |
D | nitro_enclaves.h | 329 __u64 userspace_addr; member
|
D | vhost_types.h | 100 __u64 userspace_addr; member
|
D | kvm.h | 103 __u64 userspace_addr; /* start of the userspace allocated memory */ member
|
/Linux-v6.1/arch/arm64/kvm/ |
D | mmu.c | 725 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/ |
D | kvm_main.c | 606 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/ |
D | virtio_test.c | 148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
|
/Linux-v6.1/include/linux/ |
D | kvm_host.h | 574 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/ |
D | mmu.c | 475 hva = new->userspace_addr; in kvm_arch_prepare_memory_region()
|
/Linux-v6.1/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 775 .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/ |
D | book3s_hv_uvmem.c | 617 addr = slot->userspace_addr; in kvmppc_uvmem_drop_pages()
|
D | book3s_hv.c | 5184 hva = memslot->userspace_addr; in kvmppc_hv_setup_htab_rma()
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | kvm.h | 103 __u64 userspace_addr; /* start of the userspace allocated memory */ member
|
/Linux-v6.1/drivers/vhost/ |
D | vhost.c | 1470 region->userspace_addr, in vhost_set_memory()
|
/Linux-v6.1/arch/s390/kvm/ |
D | kvm-s390.c | 5590 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/ |
D | x86.c | 12513 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/ |
D | api.rst | 1332 __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
|