Searched refs:vm (Results 176 - 200 of 497) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dxapic_state_test.c165 struct kvm_vm *vm; local
168 vm = vm_create_with_vcpus(NR_VCPUS, NULL, vcpus);
169 vm_enable_cap(vm, KVM_CAP_X2APIC_API, KVM_X2APIC_API_USE_32BIT_IDS);
184 kvm_vm_free(vm);
193 struct kvm_vm *vm; local
195 vm = vm_create_with_one_vcpu(&x.vcpu, x2apic_guest_code);
197 kvm_vm_free(vm);
204 vm = vm_create_with_one_vcpu(&x.vcpu, xapic_guest_code);
209 virt_pg_map(vm, APIC_DEFAULT_GPA, APIC_DEFAULT_GPA);
211 kvm_vm_free(vm);
[all...]
H A Dxen_shinfo_test.c398 struct kvm_vm *vm = (struct kvm_vm *)arg; local
423 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_activate_gfn);
425 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_deactivate_gfn);
428 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_activate_hva);
430 __vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &cache_deactivate_hva);
440 struct kvm_vm *vm; local
457 vm = vm_create_with_one_vcpu(&vcpu, guest_code);
460 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS,
462 virt_map(vm, SHINFO_REGION_GVA, SHINFO_REGION_GPA, 3);
464 shinfo = addr_gpa2hva(vm, SHINFO_VADD
[all...]
H A Dxen_vmcall_test.c85 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 Dset_sregs_test.c79 struct kvm_vm *vm; local
88 vm = vm_create_barebones();
89 vcpu = __vm_vcpu_add(vm, 0);
123 kvm_vm_free(vm);
126 vm = vm_create_with_one_vcpu(&vcpu, NULL);
138 kvm_vm_free(vm);
H A Dvmx_preemption_timer_test.c158 struct kvm_vm *vm; local
173 vm = vm_create_with_one_vcpu(&vcpu, guest_code);
177 vcpu_alloc_vmx(vm, &vmx_pages_gva);
229 kvm_vm_release(vm);
232 vcpu = vm_recreate_with_one_vcpu(vm);
244 kvm_vm_free(vm);
H A Dvmx_exception_with_invalid_guest_state.c110 struct kvm_vm *vm; local
115 vm = vm_create_with_one_vcpu(&vcpu, guest_code);
118 vm_install_exception_handler(vm, UD_VECTOR, guest_ud_handler);
H A Dxcr0_cpuid_test.c104 struct kvm_vm *vm; local
109 vm = vm_create_with_one_vcpu(&vcpu, guest_code);
132 kvm_vm_free(vm);
H A Dvmx_tsc_adjust_test.c53 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);
/linux-master/drivers/gpu/drm/arm/
H A Dhdlcd_crtc.c131 struct videomode vm; local
134 vm.vfront_porch = m->crtc_vsync_start - m->crtc_vdisplay;
135 vm.vback_porch = m->crtc_vtotal - m->crtc_vsync_end;
136 vm.vsync_len = m->crtc_vsync_end - m->crtc_vsync_start;
137 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay;
138 vm.hback_porch = m->crtc_htotal - m->crtc_hsync_end;
139 vm.hsync_len = m->crtc_hsync_end - m->crtc_hsync_start;
153 hdlcd_write(hdlcd, HDLCD_REG_V_BACK_PORCH, vm.vback_porch - 1);
154 hdlcd_write(hdlcd, HDLCD_REG_V_FRONT_PORCH, vm.vfront_porch - 1);
155 hdlcd_write(hdlcd, HDLCD_REG_V_SYNC, vm
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ids.c262 * @vm: vm to allocate id for
270 static int amdgpu_vmid_grab_reserved(struct amdgpu_vm *vm, argument
280 bool needs_flush = vm->use_cpu_for_update;
281 uint64_t updates = amdgpu_vm_tlb_seq(vm);
285 if ((*id)->owner != vm->immediate.fence_context ||
323 * @vm: vm to allocate id for
331 static int amdgpu_vmid_grab_used(struct amdgpu_vm *vm, argument
341 uint64_t updates = amdgpu_vm_tlb_seq(vm);
394 amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring, struct amdgpu_job *job, struct dma_fence **fence) argument
[all...]
H A Damdgpu_seq64.h43 int amdgpu_seq64_map(struct amdgpu_device *adev, struct amdgpu_vm *vm,
/linux-master/tools/testing/selftests/mm/
H A Drun_vmtests.sh165 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
170 echo 3 > /proc/sys/vm/drop_caches
171 if ! echo $((lackpgs + nr_hugepgs)) > /proc/sys/vm/nr_hugepages; then
220 echo 3 > /proc/sys/vm/drop_caches
222 echo 1 > /proc/sys/vm/compact_memory
269 nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages)
271 echo 1 > /proc/sys/vm/nr_hugepages
275 echo "$nr_hugepages_tmp" > /proc/sys/vm/nr_hugepages
309 echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
343 prev_policy=$(cat /proc/sys/vm/overcommit_memor
[all...]
/linux-master/drivers/gpu/drm/lima/
H A Dlima_gem.c21 int lima_heap_alloc(struct lima_bo *bo, struct lima_vm *vm) argument
89 if (vm) {
90 ret = lima_vm_map_bo(vm, bo, old_size >> PAGE_SHIFT);
167 struct lima_vm *vm = priv->vm; local
169 return lima_vm_bo_add(vm, bo, true);
176 struct lima_vm *vm = priv->vm; local
178 lima_vm_bo_del(vm, bo);
246 struct lima_vm *vm local
302 struct lima_vm *vm = priv->vm; local
[all...]
H A Dlima_drv.h24 struct lima_vm *vm; member in struct:lima_drm_priv
/linux-master/drivers/gpu/drm/omapdrm/dss/
H A Dhdmi5_core.c239 video_cfg->v_fc_config.vm = cfg->vm;
243 video_cfg->hblank = cfg->vm.hfront_porch +
244 cfg->vm.hback_porch + cfg->vm.hsync_len;
246 video_cfg->vblank = cfg->vm.vsync_len + cfg->vm.vfront_porch +
247 cfg->vm.vback_porch;
250 if (cfg->vm.flags & DISPLAY_FLAGS_INTERLACED) {
255 video_cfg->v_fc_config.vm
276 const struct videomode *vm = &cfg->v_fc_config.vm; local
568 struct videomode vm; local
[all...]
/linux-master/drivers/gpu/drm/i915/selftests/
H A Di915_vma.c43 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 Dxe_migrate.c104 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
333 struct xe_vm *vm; local
489 struct xe_vm *vm = m->q->vm; local
1164 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
1212 no_in_syncs(struct xe_vm *vm, struct xe_exec_queue *q, struct xe_sync_entry *syncs, u32 num_syncs) argument
1265 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 Dxe_bo.h77 struct xe_tile *tile, struct xe_vm *vm,
81 struct xe_vm *vm, size_t size,
84 struct xe_vm *vm, size_t size,
87 struct xe_vm *vm, size_t size,
92 struct xe_vm *vm, size_t size,
95 struct xe_vm *vm, size_t size, u64 offset,
154 XE_WARN_ON(bo->vm && bo->ttm.base.resv != xe_vm_resv(bo->vm));
155 if (bo->vm)
156 xe_vm_assert_held(bo->vm);
[all...]
/linux-master/tools/testing/selftests/kvm/s390x/
H A Dtprot.c209 struct kvm_vm *vm; local
216 vm = vm_create_with_one_vcpu(&vcpu, guest_code);
220 mprotect(addr_gva2hva(vm, (vm_vaddr_t)pages), PAGE_SIZE * 2, PROT_READ);
223 guest_0_page = vm_vaddr_alloc(vm, PAGE_SIZE, 0);
233 mprotect(addr_gva2hva(vm, (vm_vaddr_t)0), PAGE_SIZE, PROT_READ);
242 kvm_vm_free(vm);
H A Dshared_zeropage_test.c53 struct kvm_vm *vm; local
82 vm = vm_create_with_one_vcpu(&vcpu, guest_code);
108 kvm_vm_free(vm);
/linux-master/include/linux/irqchip/
H A Darm-gic-v4.h88 * @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 Daperture_gm.c65 mutex_lock(&gt->ggtt->vm.mutex);
67 ret = i915_gem_gtt_insert(&gt->ggtt->vm, NULL, node,
72 mutex_unlock(&gt->ggtt->vm.mutex);
102 mutex_lock(&gt->ggtt->vm.mutex);
104 mutex_unlock(&gt->ggtt->vm.mutex);
113 mutex_lock(&gt->ggtt->vm.mutex);
116 mutex_unlock(&gt->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/tools/testing/selftests/kvm/include/x86_64/
H A Dsvm_util.h59 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
/linux-master/tools/testing/selftests/kvm/include/
H A Dkvm_test_harness.h23 kvm_vm_free(self->vcpu->vm); \
/linux-master/tools/testing/selftests/kvm/aarch64/
H A Ddebug-exceptions.c427 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...]

Completed in 396 milliseconds

1234567891011>>