/linux-6.6.21/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-6.6.21/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-6.6.21/include/uapi/linux/ |
D | nitro_enclaves.h | 329 __u64 userspace_addr; member
|
D | vhost_types.h | 116 __u64 userspace_addr; member
|
D | kvm.h | 95 __u64 userspace_addr; /* start of the userspace allocated memory */ member
|
/linux-6.6.21/tools/testing/selftests/kvm/aarch64/ |
D | page_fault_test.c | 356 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/ |
D | kvm_main.c | 611 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/ |
D | mmu.c | 944 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/ |
D | pv.c | 263 s390_uv_destroy_range(kvm->mm, slot->userspace_addr, slot->userspace_addr + len); in kvm_s390_destroy_lower_2g()
|
D | kvm-s390.c | 5773 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/ |
D | virtio_test.c | 148 dev->mem->regions[0].userspace_addr = (long)dev->buf; in vdev_info_init()
|
/linux-6.6.21/include/linux/ |
D | kvm_host.h | 587 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/ |
D | mmu.c | 469 hva = new->userspace_addr; in kvm_arch_prepare_memory_region()
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 886 .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/ |
D | book3s_hv_uvmem.c | 622 addr = slot->userspace_addr; in kvmppc_uvmem_drop_pages()
|
D | book3s_hv.c | 5218 hva = memslot->userspace_addr; in kvmppc_hv_setup_htab_rma()
|
/linux-6.6.21/tools/include/uapi/linux/ |
D | kvm.h | 95 __u64 userspace_addr; /* start of the userspace allocated memory */ member
|
/linux-6.6.21/drivers/vhost/ |
D | vhost.c | 1751 region->userspace_addr, in vhost_set_memory()
|
/linux-6.6.21/arch/x86/kvm/ |
D | x86.c | 12457 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/ |
D | api.rst | 1309 __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
|