/linux-master/drivers/gpu/drm/i915/selftests/ |
H A D | i915_vma.c | 43 if (vma->vm != ctx->vm) { 65 struct i915_address_space *vm, 71 vma = i915_vma_instance(obj, vm, view); 76 if (vma->vm != vm) { 77 pr_err("VMA's vm [%p] does not match request [%p]\n", 78 vma->vm, vm); 82 if (i915_is_ggtt(vm) ! 64 checked_vma_instance(struct drm_i915_gem_object *obj, struct i915_address_space *vm, const struct i915_gtt_view *view) argument 118 struct i915_address_space *vm; local 547 struct i915_address_space *vm = &ggtt->vm; local 793 struct i915_address_space *vm = &ggtt->vm; local [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_migrate.c | 104 xe_vm_lock(m->q->vm, false); 106 xe_vm_unlock(m->q->vm); 112 xe_vm_close_and_put(m->q->vm); 135 struct xe_vm *vm) 140 u32 num_entries = NUM_PT_SLOTS, num_level = vm->pt_root[id]->level; 155 bo = xe_bo_create_pin_map(vm->xe, tile, vm, 163 entry = vm->pt_ops->pde_encode_bo(bo, bo->size - XE_PAGE_SIZE, pat_index); 164 xe_pt_write(xe, &vm->pt_root[id]->bo->vmap, 0, entry); 170 entry = vm 134 xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m, struct xe_vm *vm) argument 338 struct xe_vm *vm; local 490 struct xe_vm *vm = m->q->vm; local 1168 xe_migrate_update_pgtables_cpu(struct xe_migrate *m, struct xe_vm *vm, struct xe_bo *bo, const struct xe_vm_pgtable_update *updates, u32 num_updates, bool wait_vm, struct xe_migrate_pt_update *pt_update) argument 1216 no_in_syncs(struct xe_vm *vm, struct xe_exec_queue *q, struct xe_sync_entry *syncs, u32 num_syncs) argument 1269 xe_migrate_update_pgtables(struct xe_migrate *m, struct xe_vm *vm, struct xe_bo *bo, struct xe_exec_queue *q, const struct xe_vm_pgtable_update *updates, u32 num_updates, struct xe_sync_entry *syncs, u32 num_syncs, struct xe_migrate_pt_update *pt_update) argument [all...] |
H A D | xe_devcoredump.c | 68 if (ss->vm) 69 xe_vm_snapshot_capture_delayed(ss->vm); 120 if (coredump->snapshot.vm) { 122 xe_vm_snapshot_print(coredump->snapshot.vm, &p); 145 xe_vm_snapshot_free(coredump->snapshot.vm); 188 coredump->snapshot.vm = xe_vm_snapshot_capture(q->vm); 199 if (ss->vm)
|
/linux-master/tools/testing/selftests/kvm/x86_64/ |
H A D | vmx_preemption_timer_test.c | 159 struct kvm_vm *vm; local 174 vm = vm_create_with_one_vcpu(&vcpu, guest_code); 178 vcpu_alloc_vmx(vm, &vmx_pages_gva); 230 kvm_vm_release(vm); 233 vcpu = vm_recreate_with_one_vcpu(vm); 245 kvm_vm_free(vm);
|
H A D | set_sregs_test.c | 80 struct kvm_vm *vm; local 89 vm = vm_create_barebones(); 90 vcpu = __vm_vcpu_add(vm, 0); 124 kvm_vm_free(vm); 127 vm = vm_create_with_one_vcpu(&vcpu, NULL); 139 kvm_vm_free(vm);
|
H A D | xen_vmcall_test.c | 85 struct kvm_vm *vm; local 90 vm = vm_create_with_one_vcpu(&vcpu, guest_code); 97 vm_ioctl(vm, KVM_XEN_HVM_CONFIG, &hvmc); 100 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, 102 virt_map(vm, HCALL_REGION_GPA, HCALL_REGION_GPA, 2); 140 kvm_vm_free(vm);
|
H A D | hyperv_ipi.c | 244 struct kvm_vm *vm; local 253 vm = vm_create_with_one_vcpu(&vcpu[0], sender_guest_code); 256 hcall_page = vm_vaddr_alloc_pages(vm, 2); 257 memset(addr_gva2hva(vm, hcall_page), 0x0, 2 * getpagesize()); 259 vm_init_descriptor_tables(vm); 261 vcpu[1] = vm_vcpu_add(vm, RECEIVER_VCPU_ID_1, receiver_code); 263 vcpu_args_set(vcpu[1], 2, hcall_page, addr_gva2gpa(vm, hcall_page)); 267 vcpu[2] = vm_vcpu_add(vm, RECEIVER_VCPU_ID_2, receiver_code); 269 vcpu_args_set(vcpu[2], 2, hcall_page, addr_gva2gpa(vm, hcall_page)); 273 vm_install_exception_handler(vm, IPI_VECTO [all...] |
H A D | vmx_tsc_adjust_test.c | 53 static struct kvm_vm *vm; variable in typeref:struct:kvm_vm 127 vm = vm_create_with_one_vcpu(&vcpu, (void *) l1_guest_code); 130 vcpu_alloc_vmx(vm, &vmx_pages_gva); 154 kvm_vm_free(vm);
|
H A D | pmu_counters_test.c | 31 struct kvm_vm *vm; local 33 vm = vm_create_with_one_vcpu(vcpu, guest_code); 34 vm_init_descriptor_tables(vm); 37 sync_global_to_guest(vm, kvm_pmu_version); 38 sync_global_to_guest(vm, is_forced_emulation_enabled); 48 return vm; 293 struct kvm_vm *vm; local 299 vm = pmu_vm_create_with_one_vcpu(&vcpu, guest_test_arch_events, 309 kvm_vm_free(vm); 457 struct kvm_vm *vm; local 524 struct kvm_vm *vm; local [all...] |
H A D | pmu_event_filter_test.c | 170 sync_global_to_guest(vcpu->vm, pmc_results); 175 sync_global_from_guest(vcpu->vm, pmc_results); 190 vm_install_exception_handler(vcpu->vm, GP_VECTOR, guest_gp_handler); 192 vm_install_exception_handler(vcpu->vm, GP_VECTOR, NULL); 253 vm_ioctl(vcpu->vm, KVM_SET_PMU_EVENT_FILTER, f); 329 struct kvm_vm *vm; local 335 vm = vm_create(1); 337 vm_enable_cap(vm, KVM_CAP_PMU_CAPABILITY, KVM_PMU_CAP_DISABLE); 339 vcpu = vm_vcpu_add(vm, 0, guest_code); 340 vm_init_descriptor_tables(vm); 847 struct kvm_vm *vm; local 868 struct kvm_vm *vm; local [all...] |
H A D | state_test.c | 238 struct kvm_vm *vm; local 244 vm = vm_create_with_one_vcpu(&vcpu, guest_code); 250 vcpu_alloc_svm(vm, &nested_gva); 252 vcpu_alloc_vmx(vm, &nested_gva); 285 kvm_vm_release(vm); 288 vcpu = vm_recreate_with_one_vcpu(vm); 308 vcpuN = __vm_vcpu_add(vm, vcpu->id + 1); 328 kvm_vm_free(vm);
|
H A D | hyperv_svm_test.c | 156 struct kvm_vm *vm; local 164 vm = vm_create_with_one_vcpu(&vcpu, guest_code); 166 vcpu_alloc_svm(vm, &nested_gva); 167 vcpu_alloc_hyperv_test_pages(vm, &hv_pages_gva); 169 hcall_page = vm_vaddr_alloc_pages(vm, 1); 170 memset(addr_gva2hva(vm, hcall_page), 0x0, getpagesize()); 172 vcpu_args_set(vcpu, 3, nested_gva, hv_pages_gva, addr_gva2gpa(vm, hcall_page)); 199 kvm_vm_free(vm);
|
H A D | hyperv_clock.c | 209 struct kvm_vm *vm; local 217 vm = vm_create_with_one_vcpu(&vcpu, guest_main); 221 tsc_page_gva = vm_vaddr_alloc_page(vm); 222 memset(addr_gva2hva(vm, tsc_page_gva), 0x0, getpagesize()); 223 TEST_ASSERT((addr_gva2gpa(vm, tsc_page_gva) & (getpagesize() - 1)) == 0, 225 vcpu_args_set(vcpu, 2, tsc_page_gva, addr_gva2gpa(vm, tsc_page_gva)); 257 vm_ioctl(vm, KVM_SET_CLOCK, &clock); 262 kvm_vm_free(vm);
|
/linux-master/tools/testing/selftests/kvm/s390x/ |
H A D | tprot.c | 208 struct kvm_vm *vm; local 215 vm = vm_create_with_one_vcpu(&vcpu, guest_code); 219 mprotect(addr_gva2hva(vm, (vm_vaddr_t)pages), PAGE_SIZE * 2, PROT_READ); 222 guest_0_page = vm_vaddr_alloc(vm, PAGE_SIZE, 0); 232 mprotect(addr_gva2hva(vm, (vm_vaddr_t)0), PAGE_SIZE, PROT_READ); 241 kvm_vm_free(vm);
|
/linux-master/include/linux/irqchip/ |
H A D | arm-gic-v4.h | 88 * @vm: Pointer to the GICv4 notion of a VM 95 struct its_vm *vm; member in struct:its_vlpi_map 131 int its_alloc_vcpu_irqs(struct its_vm *vm); 132 void its_free_vcpu_irqs(struct its_vm *vm);
|
/linux-master/drivers/gpu/drm/i915/gvt/ |
H A D | aperture_gm.c | 65 mutex_lock(>->ggtt->vm.mutex); 67 ret = i915_gem_gtt_insert(>->ggtt->vm, NULL, node, 72 mutex_unlock(>->ggtt->vm.mutex); 102 mutex_lock(>->ggtt->vm.mutex); 104 mutex_unlock(>->ggtt->vm.mutex); 113 mutex_lock(>->ggtt->vm.mutex); 116 mutex_unlock(>->ggtt->vm.mutex); 179 mutex_lock(&gvt->gt->ggtt->vm.mutex); 186 mutex_unlock(&gvt->gt->ggtt->vm.mutex); 202 mutex_lock(&gvt->gt->ggtt->vm [all...] |
/linux-master/drivers/gpu/drm/lima/ |
H A D | lima_drv.h | 23 struct lima_vm *vm; member in struct:lima_drm_priv
|
/linux-master/tools/testing/selftests/kvm/include/x86_64/ |
H A D | svm_util.h | 59 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_seq64.h | 43 int amdgpu_seq64_map(struct amdgpu_device *adev, struct amdgpu_vm *vm,
|
H A D | amdgpu_gem.c | 167 struct amdgpu_vm *vm = &fpriv->vm; local 177 abo->tbo.base.resv != vm->root.bo->tbo.base.resv) 184 bo_va = amdgpu_vm_bo_find(vm, abo); 186 bo_va = amdgpu_vm_bo_add(adev, vm, abo); 202 if (!vm->is_compute_context || !vm->process_info) 207 mutex_lock_nested(&vm->process_info->lock, 1); 208 if (!WARN_ON(!vm->process_info->eviction_fence)) { 210 &vm 232 struct amdgpu_vm *vm = &fpriv->vm; local 316 struct amdgpu_vm *vm = &fpriv->vm; local 639 amdgpu_gem_va_update_vm(struct amdgpu_device *adev, struct amdgpu_vm *vm, struct amdgpu_bo_va *bo_va, uint32_t operation) argument [all...] |
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | kvm_test_harness.h | 23 kvm_vm_free(self->vcpu->vm); \
|
/linux-master/tools/testing/selftests/kvm/aarch64/ |
H A D | debug-exceptions.c | 427 struct kvm_vm *vm; local 430 vm = vm_create_with_one_vcpu(&vcpu, guest_code); 432 vm_init_descriptor_tables(vm); 435 vm_install_sync_handler(vm, VECTOR_SYNC_CURRENT, 437 vm_install_sync_handler(vm, VECTOR_SYNC_CURRENT, 439 vm_install_sync_handler(vm, VECTOR_SYNC_CURRENT, 441 vm_install_sync_handler(vm, VECTOR_SYNC_CURRENT, 443 vm_install_sync_handler(vm, VECTOR_SYNC_CURRENT, 462 kvm_vm_free(vm); 468 struct kvm_vm *vm; local 580 struct kvm_vm *vm; local [all...] |
/linux-master/tools/testing/selftests/proc/ |
H A D | Makefile | 11 TEST_GEN_PROGS += proc-empty-vm 12 TEST_GEN_PROGS += proc-pid-vm
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.h | 28 int i915_gem_gtt_reserve(struct i915_address_space *vm, 34 int i915_gem_gtt_insert(struct i915_address_space *vm,
|
/linux-master/arch/loongarch/kvm/ |
H A D | Makefile | 20 kvm-y += vm.o
|