| /linux/mm/ |
| H A D | vma.c | 32 struct vma_munmap_struct vms; member 1216 static inline void vms_clear_ptes(struct vma_munmap_struct *vms, in vms_clear_ptes() argument 1221 if (!vms->clear_ptes) /* Nothing to do */ in vms_clear_ptes() 1229 tlb_gather_mmu(&tlb, vms->vma->vm_mm); in vms_clear_ptes() 1230 update_hiwater_rss(vms->vma->vm_mm); in vms_clear_ptes() 1231 unmap_vmas(&tlb, mas_detach, vms->vma, vms->start, vms->end, in vms_clear_ptes() 1232 vms->vma_count); in vms_clear_ptes() 1236 free_pgtables(&tlb, mas_detach, vms->vma, vms->unmap_start, in vms_clear_ptes() 1237 vms->unmap_end, mm_wr_locked); in vms_clear_ptes() 1239 vms->clear_ptes = false; in vms_clear_ptes() [all …]
|
| H A D | percpu-vm.c | 336 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()
|
| H A D | vmalloc.c | 4879 struct vm_struct **vms; in pcpu_get_vm_areas() local 4912 vms = kcalloc(nr_vms, sizeof(vms[0]), GFP_KERNEL); in pcpu_get_vm_areas() 4914 if (!vas || !vms) in pcpu_get_vm_areas() 4919 vms[area] = kzalloc(sizeof(struct vm_struct), GFP_KERNEL); in pcpu_get_vm_areas() 4920 if (!vas[area] || !vms[area]) in pcpu_get_vm_areas() 5019 setup_vmalloc_vm(vms[area], vas[area], VM_ALLOC, in pcpu_get_vm_areas() 5030 kasan_unpoison_vmap_areas(vms, nr_vms, KASAN_VMALLOC_PROT_NORMAL); in pcpu_get_vm_areas() 5033 return vms; in pcpu_get_vm_areas() 5079 kfree(vms[area]); in pcpu_get_vm_areas() 5083 kfree(vms); in pcpu_get_vm_areas() [all …]
|
| /linux/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-signal-context-chk-vmx.c | 36 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()
|
| H A D | tm-signal-context-chk-fpu.c | 35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
|
| H A D | tm-signal-context-chk-gpr.c | 35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
|
| H A D | tm-signal-context-chk-vsx.c | 37 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | kvm_binary_stats_test.c | 189 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/mm/kasan/ |
| H A D | common.c | 581 void __kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, in __kasan_unpoison_vmap_areas() argument 597 size = vms[0]->size; in __kasan_unpoison_vmap_areas() 598 addr = vms[0]->addr; in __kasan_unpoison_vmap_areas() 599 vms[0]->addr = __kasan_unpoison_vmalloc(addr, size, flags); in __kasan_unpoison_vmap_areas() 600 tag = get_tag(vms[0]->addr); in __kasan_unpoison_vmap_areas() 603 size = vms[area]->size; in __kasan_unpoison_vmap_areas() 604 addr = set_tag(vms[area]->addr, tag); in __kasan_unpoison_vmap_areas() 605 vms[area]->addr = in __kasan_unpoison_vmap_areas()
|
| /linux/include/linux/ |
| H A D | kasan.h | 634 void __kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, 637 kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, in kasan_unpoison_vmap_areas() argument 641 __kasan_unpoison_vmap_areas(vms, nr_vms, flags); in kasan_unpoison_vmap_areas() 669 kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, in kasan_unpoison_vmap_areas() argument
|
| H A D | vmalloc.h | 316 void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms); 326 static inline void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) {} in pcpu_free_vm_areas() argument
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 1586 if (!pfile->vms) in panthor_vm_pool_destroy() 1589 xa_for_each(&pfile->vms->xa, i, vm) in panthor_vm_pool_destroy() 1592 xa_destroy(&pfile->vms->xa); in panthor_vm_pool_destroy() 1593 kfree(pfile->vms); in panthor_vm_pool_destroy() 1604 pfile->vms = kzalloc(sizeof(*pfile->vms), GFP_KERNEL); in panthor_vm_pool_create() 1605 if (!pfile->vms) in panthor_vm_pool_create() 1608 xa_init_flags(&pfile->vms->xa, XA_FLAGS_ALLOC1); in panthor_vm_pool_create() 1943 if (!pfile->vms) in panthor_vm_heaps_sizes() 1946 xa_lock(&pfile->vms->xa); in panthor_vm_heaps_sizes() 1947 xa_for_each(&pfile->vms->xa, i, vm) { in panthor_vm_heaps_sizes() [all …]
|
| H A D | panthor_device.h | 271 struct panthor_vm_pool *vms; member
|
| H A D | panthor_sched.c | 2024 struct panthor_vm *vms[MAX_CS_PER_CSG]; member 2059 if (ctx->vms[i] == group->vm) in tick_ctx_pick_groups_from_list() 2075 ctx->vms[ctx->as_count++] = group->vm; in tick_ctx_pick_groups_from_list() 3661 group->vm = panthor_vm_pool_get_vm(pfile->vms, group_args->vm_id); in panthor_group_create()
|
| /linux/tools/kvm/kvm_stat/ |
| H A D | kvm_stat | 846 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/ |
| H A D | api.rst | 5501 Not all PV vms can be dumped, the owner needs to set `dump 8206 allows the in-guest workload to maintain its own NPTs and keeps the two vms
|