Home
last modified time | relevance | path

Searched refs:vms (Results 1 – 17 of 17) sorted by relevance

/linux/mm/
A Dvma.c1095 unmap_vmas(&tlb, mas_detach, vms->vma, vms->start, vms->end, in vms_clear_ptes()
1190 if (vms->start > vms->vma->vm_start) { in vms_gather_munmap_vmas()
1197 if (vms->end < vms->vma->vm_end && in vms_gather_munmap_vmas()
1209 error = __split_vma(vms->vmi, vms->vma, vms->start, 1); in vms_gather_munmap_vmas()
1213 vms->prev = vma_prev(vms->vmi); in vms_gather_munmap_vmas()
1215 vms->unmap_start = vms->prev->vm_end; in vms_gather_munmap_vmas()
1268 vms->end, vms->uf); in vms_gather_munmap_vmas()
1278 vms->next = vma_next(vms->vmi); in vms_gather_munmap_vmas()
1280 vms->unmap_end = vms->next->vm_start; in vms_gather_munmap_vmas()
1289 vma_iter_set(vms->vmi, vms->start); in vms_gather_munmap_vmas()
[all …]
A Dvma.h184 vms->vmi = vmi; in init_vma_munmap()
185 vms->vma = vma; in init_vma_munmap()
187 vms->start = start; in init_vma_munmap()
188 vms->end = end; in init_vma_munmap()
190 vms->start = vms->end = 0; in init_vma_munmap()
193 vms->uf = uf; in init_vma_munmap()
194 vms->vma_count = 0; in init_vma_munmap()
195 vms->nr_pages = vms->locked_vm = vms->nr_accounted = 0; in init_vma_munmap()
196 vms->exec_vm = vms->stack_vm = vms->data_vm = 0; in init_vma_munmap()
244 if (!vms->nr_pages) in vms_abort_munmap_vmas()
[all …]
A Dpercpu-vm.c336 struct vm_struct **vms; in pcpu_create_chunk() local
342 vms = pcpu_get_vm_areas(pcpu_group_offsets, pcpu_group_sizes, in pcpu_create_chunk()
344 if (!vms) { in pcpu_create_chunk()
349 chunk->data = vms; in pcpu_create_chunk()
350 chunk->base_addr = vms[0]->addr - pcpu_group_offsets[0]; in pcpu_create_chunk()
A Dmmap.c1369 struct vma_munmap_struct vms; in __mmap_region() local
1380 init_vma_munmap(&vms, &vmi, vma, addr, end, uf, /* unlock = */ false); in __mmap_region()
1386 error = vms_gather_munmap_vmas(&vms, &mas_detach); in __mmap_region()
1390 vmg.next = vms.next; in __mmap_region()
1391 vmg.prev = vms.prev; in __mmap_region()
1398 if (!may_expand_vm(mm, vm_flags, pglen - vms.nr_pages)) { in __mmap_region()
1408 charged -= vms.nr_accounted; in __mmap_region()
1415 vms.nr_accounted = 0; in __mmap_region()
1426 vms_clean_up_area(&vms, &mas_detach); in __mmap_region()
1530 vms_complete_munmap_vmas(&vms, &mas_detach); in __mmap_region()
[all …]
A Dvmalloc.c4615 struct vm_struct **vms; in pcpu_get_vm_areas() local
4648 vms = kcalloc(nr_vms, sizeof(vms[0]), GFP_KERNEL); in pcpu_get_vm_areas()
4650 if (!vas || !vms) in pcpu_get_vm_areas()
4767 vms[area]->addr = kasan_unpoison_vmalloc(vms[area]->addr, in pcpu_get_vm_areas()
4771 return vms; in pcpu_get_vm_areas()
4816 kfree(vms[area]); in pcpu_get_vm_areas()
4820 kfree(vms); in pcpu_get_vm_areas()
4839 kfree(vms[area]); in pcpu_get_vm_areas()
4843 kfree(vms); in pcpu_get_vm_areas()
4859 free_vm_area(vms[i]); in pcpu_free_vm_areas()
[all …]
/linux/tools/testing/selftests/powerpc/tm/
A Dtm-signal-context-chk-vmx.c36 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
41 vector int vms[] = { variable
65 &vms[i], sizeof(vector int)); in signal_usr1()
75 printf("%08x", vms[i][j]); in signal_usr1()
83 &vms[NV_VMX_REGS + i], sizeof (vector int)); in signal_usr1()
93 printf("%08x", vms[NV_VMX_REGS + i][j]); in signal_usr1()
125 rc = tm_signal_self_context_load(pid, NULL, NULL, vms, NULL); in tm_signal_context_chk()
A Dtm-signal-context-chk-fpu.c35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
A Dtm-signal-context-chk-gpr.c35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
A Dtm-signal-context-chk-vsx.c37 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
/linux/tools/testing/selftests/kvm/
A Dkvm_binary_stats_test.c189 struct kvm_vm **vms; in main() local
213 vms = malloc(sizeof(vms[0]) * max_vm); in main()
214 TEST_ASSERT(vms, "Allocate memory for storing VM pointers"); in main()
227 vms[i] = vm_create_barebones(); in main()
229 vcpus[i * max_vcpu + j] = __vm_vcpu_add(vms[i], j); in main()
241 vm_stats_fds = vm_get_stats_fd(vms[i]); in main()
245 stats_test(vm_get_stats_fd(vms[i])); in main()
259 kvm_vm_free(vms[i]); in main()
268 free(vms); in main()
/linux/drivers/gpu/drm/panthor/
A Dpanthor_drv.c799 ret = panthor_vm_pool_create_vm(ptdev, pfile->vms, args); in panthor_ioctl_vm_create()
818 return panthor_vm_pool_destroy_vm(pfile->vms, args->id); in panthor_ioctl_vm_destroy()
841 vm = panthor_vm_pool_get_vm(pfile->vms, args->exclusive_vm_id); in panthor_ioctl_bo_create()
1065 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_tiler_heap_create()
1111 vm = panthor_vm_pool_get_vm(pfile->vms, args->handle >> 16); in panthor_ioctl_tiler_heap_destroy()
1139 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_vm_bind_async()
1207 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_vm_bind_sync()
1258 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_vm_get_state()
A Dpanthor_mmu.c1606 if (!pfile->vms) in panthor_vm_pool_destroy()
1609 xa_for_each(&pfile->vms->xa, i, vm) in panthor_vm_pool_destroy()
1612 xa_destroy(&pfile->vms->xa); in panthor_vm_pool_destroy()
1613 kfree(pfile->vms); in panthor_vm_pool_destroy()
1624 pfile->vms = kzalloc(sizeof(*pfile->vms), GFP_KERNEL); in panthor_vm_pool_create()
1625 if (!pfile->vms) in panthor_vm_pool_create()
1628 xa_init_flags(&pfile->vms->xa, XA_FLAGS_ALLOC1); in panthor_vm_pool_create()
A Dpanthor_device.h175 struct panthor_vm_pool *vms; member
A Dpanthor_sched.c1820 struct panthor_vm *vms[MAX_CS_PER_CSG]; member
1877 if (ctx->vms[i] == group->vm) in tick_ctx_pick_groups_from_list()
1893 ctx->vms[ctx->as_count++] = group->vm; in tick_ctx_pick_groups_from_list()
3147 group->vm = panthor_vm_pool_get_vm(pfile->vms, group_args->vm_id); in panthor_group_create()
/linux/include/linux/
A Dvmalloc.h304 void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms);
315 pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) in pcpu_free_vm_areas() argument
/linux/tools/kvm/kvm_stat/
A Dkvm_stat846 vms = self.walkdir(PATH_DEBUGFS_KVM)[1]
847 if len(vms) == 0:
850 self.paths = list(filter(lambda x: "{}-".format(pid) in x, vms))
/linux/Documentation/virt/kvm/
A Dapi.rst5444 Not all PV vms can be dumped, the owner needs to set `dump
7910 allows the in-guest workload to maintain its own NPTs and keeps the two vms

Completed in 66 milliseconds