Home
last modified time | relevance | path

Searched defs:vm (Results 1 – 25 of 205) sorted by relevance

123456789

/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c78 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap) in vm_enable_cap()
102 int vcpu_enable_cap(struct kvm_vm *vm, uint32_t vcpu_id, in vcpu_enable_cap()
117 static void vm_open(struct kvm_vm *vm, int perm) in vm_open()
185 struct kvm_vm *vm; in vm_create() local
308 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log) in kvm_vm_get_dirty_log()
318 void kvm_vm_clear_dirty_log(struct kvm_vm *vm, int slot, void *log, in kvm_vm_clear_dirty_log()
351 userspace_mem_region_find(struct kvm_vm *vm, uint64_t start, uint64_t end) in userspace_mem_region_find()
383 kvm_userspace_memory_region_find(struct kvm_vm *vm, uint64_t start, in kvm_userspace_memory_region_find()
411 struct vcpu *vcpu_find(struct kvm_vm *vm, uint32_t vcpuid) in vcpu_find()
467 static void __vm_mem_region_delete(struct kvm_vm *vm, in __vm_mem_region_delete()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c19 static uint64_t page_align(struct kvm_vm *vm, uint64_t v) in page_align()
24 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index()
32 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index()
43 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index()
54 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index()
60 static uint64_t pte_addr(struct kvm_vm *vm, uint64_t entry) in pte_addr()
66 static uint64_t ptrs_per_pgd(struct kvm_vm *vm) in ptrs_per_pgd()
72 static uint64_t __maybe_unused ptrs_per_pte(struct kvm_vm *vm) in ptrs_per_pte()
77 void virt_pgd_alloc(struct kvm_vm *vm, uint32_t pgd_memslot) in virt_pgd_alloc()
88 void _virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in _virt_pg_map()
[all …]
Ducall.c12 static bool ucall_mmio_init(struct kvm_vm *vm, vm_paddr_t gpa) in ucall_mmio_init()
25 void ucall_init(struct kvm_vm *vm, void *arg) in ucall_init()
68 void ucall_uninit(struct kvm_vm *vm) in ucall_uninit()
92 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall()
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_mem.c168 static int register_virtio_mem_device(struct virtio_mem *vm) in register_virtio_mem_device()
187 static void unregister_virtio_mem_device(struct virtio_mem *vm) in unregister_virtio_mem_device()
218 static unsigned long virtio_mem_phys_to_sb_id(struct virtio_mem *vm, in virtio_mem_phys_to_sb_id()
230 static void virtio_mem_mb_set_state(struct virtio_mem *vm, unsigned long mb_id, in virtio_mem_mb_set_state()
247 static enum virtio_mem_mb_state virtio_mem_mb_get_state(struct virtio_mem *vm, in virtio_mem_mb_get_state()
258 static int virtio_mem_mb_state_prepare_next_mb(struct virtio_mem *vm) in virtio_mem_mb_state_prepare_next_mb()
300 static void virtio_mem_mb_set_sb_plugged(struct virtio_mem *vm, in virtio_mem_mb_set_sb_plugged()
314 static void virtio_mem_mb_set_sb_unplugged(struct virtio_mem *vm, in virtio_mem_mb_set_sb_unplugged()
326 static bool virtio_mem_mb_test_sb_plugged(struct virtio_mem *vm, in virtio_mem_mb_test_sb_plugged()
343 static bool virtio_mem_mb_test_sb_unplugged(struct virtio_mem *vm, in virtio_mem_mb_test_sb_unplugged()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c18 void virt_pgd_alloc(struct kvm_vm *vm, uint32_t memslot) in virt_pgd_alloc()
41 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri, uint32_t memslot) in virt_alloc_region()
54 void virt_pg_map(struct kvm_vm *vm, uint64_t gva, uint64_t gpa, in virt_pg_map()
94 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
119 static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_ptes()
133 static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_region()
155 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_dump()
172 struct kvm_vm *vm; in vm_create_default() local
183 void vm_vcpu_add_default(struct kvm_vm *vm, uint32_t vcpuid, void *guest_code) in vm_vcpu_add_default()
214 void vcpu_args_set(struct kvm_vm *vm, uint32_t vcpuid, unsigned int num, ...) in vcpu_args_set()
[all …]
Ducall.c9 void ucall_init(struct kvm_vm *vm, void *arg) in ucall_init()
13 void ucall_uninit(struct kvm_vm *vm) in ucall_uninit()
36 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dmock_gtt.c27 static void mock_insert_page(struct i915_address_space *vm, in mock_insert_page()
35 static void mock_insert_entries(struct i915_address_space *vm, in mock_insert_entries()
41 static void mock_bind_ppgtt(struct i915_address_space *vm, in mock_bind_ppgtt()
51 static void mock_unbind_ppgtt(struct i915_address_space *vm, in mock_unbind_ppgtt()
56 static void mock_cleanup(struct i915_address_space *vm) in mock_cleanup()
60 static void mock_clear_range(struct i915_address_space *vm, in mock_clear_range()
96 static void mock_bind_ggtt(struct i915_address_space *vm, in mock_bind_ggtt()
104 static void mock_unbind_ggtt(struct i915_address_space *vm, in mock_unbind_ggtt()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vm.c92 static inline void amdgpu_vm_eviction_lock(struct amdgpu_vm *vm) in amdgpu_vm_eviction_lock()
98 static inline int amdgpu_vm_eviction_trylock(struct amdgpu_vm *vm) in amdgpu_vm_eviction_trylock()
107 static inline void amdgpu_vm_eviction_unlock(struct amdgpu_vm *vm) in amdgpu_vm_eviction_unlock()
225 struct amdgpu_vm *vm = vm_bo->vm; in amdgpu_vm_bo_evicted() local
318 struct amdgpu_vm *vm, in amdgpu_vm_bo_base_init()
391 struct amdgpu_vm *vm, uint64_t start, in amdgpu_vm_pt_start()
517 struct amdgpu_vm *vm, in amdgpu_vm_pt_first_dfs()
568 #define for_each_amdgpu_vm_pt_dfs_safe(adev, vm, start, cursor, entry) \ argument
584 void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm, in amdgpu_vm_get_pd_bo()
619 struct amdgpu_vm *vm = bo_base->vm; in amdgpu_vm_del_from_lru_notify() local
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_gtt.c14 struct drm_i915_gem_object *alloc_pt_dma(struct i915_address_space *vm, int sz) in alloc_pt_dma()
22 int pin_pt_dma(struct i915_address_space *vm, struct drm_i915_gem_object *obj) in pin_pt_dma()
34 void __i915_vm_close(struct i915_address_space *vm) in __i915_vm_close()
59 void i915_address_space_fini(struct i915_address_space *vm) in i915_address_space_fini()
67 struct i915_address_space *vm = in __i915_vm_release() local
78 struct i915_address_space *vm = in i915_vm_release() local
87 void i915_address_space_init(struct i915_address_space *vm, int subclass) in i915_address_space_init()
165 int setup_scratch_page(struct i915_address_space *vm) in setup_scratch_page()
228 void free_scratch(struct i915_address_space *vm) in free_scratch()
Dgen8_ppgtt.c146 gen8_pd_top_count(const struct i915_address_space *vm) in gen8_pd_top_count()
153 gen8_pdp_for_page_index(struct i915_address_space * const vm, const u64 idx) in gen8_pdp_for_page_index()
164 gen8_pdp_for_page_address(struct i915_address_space * const vm, const u64 addr) in gen8_pdp_for_page_address()
169 static void __gen8_ppgtt_cleanup(struct i915_address_space *vm, in __gen8_ppgtt_cleanup()
187 static void gen8_ppgtt_cleanup(struct i915_address_space *vm) in gen8_ppgtt_cleanup()
198 static u64 __gen8_ppgtt_clear(struct i915_address_space * const vm, in __gen8_ppgtt_clear()
257 static void gen8_ppgtt_clear(struct i915_address_space *vm, in gen8_ppgtt_clear()
272 static void __gen8_ppgtt_alloc(struct i915_address_space * const vm, in __gen8_ppgtt_alloc()
341 static void gen8_ppgtt_alloc(struct i915_address_space *vm, in gen8_ppgtt_alloc()
528 static void gen8_ppgtt_insert(struct i915_address_space *vm, in gen8_ppgtt_insert()
[all …]
Dintel_ppgtt.c13 struct i915_page_table *alloc_pt(struct i915_address_space *vm) in alloc_pt()
49 struct i915_page_directory *alloc_pd(struct i915_address_space *vm) in alloc_pd()
67 void free_px(struct i915_address_space *vm, struct i915_page_table *pt, int lvl) in free_px()
178 void ppgtt_bind_vma(struct i915_address_space *vm, in ppgtt_bind_vma()
200 void ppgtt_unbind_vma(struct i915_address_space *vm, struct i915_vma *vma) in ppgtt_unbind_vma()
212 int i915_vm_alloc_pt_stash(struct i915_address_space *vm, in i915_vm_alloc_pt_stash()
257 int i915_vm_pin_pt_stash(struct i915_address_space *vm, in i915_vm_pin_pt_stash()
274 void i915_vm_free_pt_stash(struct i915_address_space *vm, in i915_vm_free_pt_stash()
Dintel_ggtt.c191 static void gen8_ggtt_insert_page(struct i915_address_space *vm, in gen8_ggtt_insert_page()
206 static void gen8_ggtt_insert_entries(struct i915_address_space *vm, in gen8_ggtt_insert_entries()
242 static void gen6_ggtt_insert_page(struct i915_address_space *vm, in gen6_ggtt_insert_page()
263 static void gen6_ggtt_insert_entries(struct i915_address_space *vm, in gen6_ggtt_insert_entries()
293 static void nop_clear_range(struct i915_address_space *vm, in nop_clear_range()
298 static void gen8_ggtt_clear_range(struct i915_address_space *vm, in gen8_ggtt_clear_range()
319 static void bxt_vtd_ggtt_wa(struct i915_address_space *vm) in bxt_vtd_ggtt_wa()
332 struct i915_address_space *vm; member
348 static void bxt_vtd_ggtt_insert_page__BKL(struct i915_address_space *vm, in bxt_vtd_ggtt_insert_page__BKL()
360 struct i915_address_space *vm; member
[all …]
Dintel_gtt.h299 struct i915_address_space vm; member
342 struct i915_address_space vm; member
347 #define i915_is_ggtt(vm) ((vm)->is_ggtt) argument
350 i915_vm_is_4lvl(const struct i915_address_space *vm) in i915_vm_is_4lvl()
356 i915_vm_has_scratch_64K(struct i915_address_space *vm) in i915_vm_has_scratch_64K()
362 i915_vm_has_cache_coloring(struct i915_address_space *vm) in i915_vm_has_cache_coloring()
368 i915_vm_to_ggtt(struct i915_address_space *vm) in i915_vm_to_ggtt()
376 i915_vm_to_ppgtt(struct i915_address_space *vm) in i915_vm_to_ppgtt()
384 i915_vm_get(struct i915_address_space *vm) in i915_vm_get()
392 static inline void i915_vm_put(struct i915_address_space *vm) in i915_vm_put()
[all …]
Dgen6_ppgtt.c79 static void gen6_ppgtt_clear_range(struct i915_address_space *vm, in gen6_ppgtt_clear_range()
116 static void gen6_ppgtt_insert_entries(struct i915_address_space *vm, in gen6_ppgtt_insert_entries()
180 static void gen6_alloc_va_range(struct i915_address_space *vm, in gen6_alloc_va_range()
230 struct i915_address_space * const vm = &ppgtt->base.vm; in gen6_ppgtt_init_scratch() local
273 static void gen6_ppgtt_cleanup(struct i915_address_space *vm) in gen6_ppgtt_cleanup()
301 static void pd_vma_bind(struct i915_address_space *vm, in pd_vma_bind()
317 static void pd_vma_unbind(struct i915_address_space *vm, struct i915_vma *vma) in pd_vma_unbind()
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/
Dlima_vm.c18 struct lima_vm *vm; member
35 static void lima_vm_unmap_range(struct lima_vm *vm, u32 start, u32 end) in lima_vm_unmap_range()
47 static int lima_vm_map_page(struct lima_vm *vm, dma_addr_t pa, u32 va) in lima_vm_map_page()
77 lima_vm_bo_find(struct lima_vm *vm, struct lima_bo *bo) in lima_vm_bo_find()
91 int lima_vm_bo_add(struct lima_vm *vm, struct lima_bo *bo, bool create) in lima_vm_bo_add()
155 void lima_vm_bo_del(struct lima_vm *vm, struct lima_bo *bo) in lima_vm_bo_del()
185 u32 lima_vm_get_va(struct lima_vm *vm, struct lima_bo *bo) in lima_vm_get_va()
202 struct lima_vm *vm; in lima_vm_create() local
237 struct lima_vm *vm = container_of(kref, struct lima_vm, refcount); in lima_vm_release() local
254 void lima_vm_print(struct lima_vm *vm) in lima_vm_print()
[all …]
/kernel/linux/linux-5.10/sound/pci/ctxfi/
Dctvmem.c30 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block()
75 static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block) in put_vm_block()
124 ct_vm_map(struct ct_vm *vm, struct snd_pcm_substream *substream, int size) in ct_vm_map()
152 static void ct_vm_unmap(struct ct_vm *vm, struct ct_vm_block *block) in ct_vm_unmap()
164 ct_get_ptp_phys(struct ct_vm *vm, int index) in ct_get_ptp_phys()
171 struct ct_vm *vm; in ct_vm_create() local
215 void ct_vm_destroy(struct ct_vm *vm) in ct_vm_destroy()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Dvmx_set_nested_state_test.c30 void test_nested_state(struct kvm_vm *vm, struct kvm_nested_state *state) in test_nested_state()
35 void test_nested_state_expect_errno(struct kvm_vm *vm, in test_nested_state_expect_errno()
48 void test_nested_state_expect_einval(struct kvm_vm *vm, in test_nested_state_expect_einval()
54 void test_nested_state_expect_efault(struct kvm_vm *vm, in test_nested_state_expect_efault()
89 void test_vmx_nested_state(struct kvm_vm *vm) in test_vmx_nested_state()
249 struct kvm_vm *vm; in main() local
Dplatform_info_test.c38 static void set_msr_platform_info_enabled(struct kvm_vm *vm, bool enable) in set_msr_platform_info_enabled()
48 static void test_msr_platform_info_enabled(struct kvm_vm *vm) in test_msr_platform_info_enabled()
68 static void test_msr_platform_info_disabled(struct kvm_vm *vm) in test_msr_platform_info_disabled()
82 struct kvm_vm *vm; in main() local
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_vm.c129 struct radeon_vm *vm, in radeon_vm_get_bos()
178 struct radeon_vm *vm, int ring) in radeon_vm_grab_id()
237 struct radeon_vm *vm, in radeon_vm_flush()
269 struct radeon_vm *vm, in radeon_vm_fence()
293 struct radeon_bo_va *radeon_vm_bo_find(struct radeon_vm *vm, in radeon_vm_bo_find()
320 struct radeon_vm *vm, in radeon_vm_bo_add()
452 struct radeon_vm *vm = bo_va->vm; in radeon_vm_bo_set_addr() local
642 struct radeon_vm *vm) in radeon_vm_update_page_directory()
815 struct radeon_vm *vm, in radeon_vm_update_ptes()
886 static void radeon_vm_fence_pts(struct radeon_vm *vm, in radeon_vm_fence_pts()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c212 void virt_pgd_alloc(struct kvm_vm *vm, uint32_t pgd_memslot) in virt_pgd_alloc()
226 void virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in virt_pg_map()
297 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_dump()
396 static void kvm_seg_fill_gdt_64bit(struct kvm_vm *vm, struct kvm_segment *segp) in kvm_seg_fill_gdt_64bit()
434 static void kvm_seg_set_kernel_code_64bit(struct kvm_vm *vm, uint16_t selector, in kvm_seg_set_kernel_code_64bit()
466 static void kvm_seg_set_kernel_data_64bit(struct kvm_vm *vm, uint16_t selector, in kvm_seg_set_kernel_data_64bit()
482 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa()
523 static void kvm_setup_gdt(struct kvm_vm *vm, struct kvm_dtable *dt, int gdt_memslot, in kvm_setup_gdt()
534 static void kvm_setup_tss_64bit(struct kvm_vm *vm, struct kvm_segment *segp, in kvm_setup_tss_64bit()
551 static void vcpu_setup(struct kvm_vm *vm, int vcpuid, int pgd_memslot, int gdt_memslot) in vcpu_setup()
[all …]
Ducall.c11 void ucall_init(struct kvm_vm *vm, void *arg) in ucall_init()
15 void ucall_uninit(struct kvm_vm *vm) in ucall_uninit()
38 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall()
Dvmx.c46 int vcpu_enable_evmcs(struct kvm_vm *vm, int vcpu_id) in vcpu_enable_evmcs()
78 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx()
397 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_pg_map()
496 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map()
516 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map_memslot()
538 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, in prepare_eptp()
546 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm, in prepare_virtualize_apic_accesses()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
Dset_memory_region_test.c57 struct kvm_vm *vm = data; in vcpu_worker() local
118 struct kvm_vm *vm; in spawn_vm() local
185 struct kvm_vm *vm; in test_move_memory_region() local
265 struct kvm_vm *vm; in test_delete_memory_region() local
315 struct kvm_vm *vm; in test_zero_memory_regions() local
341 struct kvm_vm *vm; in test_add_max_memory_regions() local
Dsteal_time.c63 static void steal_time_init(struct kvm_vm *vm) in steal_time_init()
89 static void steal_time_dump(struct kvm_vm *vm, uint32_t vcpuid) in steal_time_dump()
172 static void steal_time_init(struct kvm_vm *vm) in steal_time_init()
210 static void steal_time_dump(struct kvm_vm *vm, uint32_t vcpuid) in steal_time_dump()
252 static void run_vcpu(struct kvm_vm *vm, uint32_t vcpuid) in run_vcpu()
275 struct kvm_vm *vm; in main() local
Ddirty_log_test.c154 static void clear_log_create_vm_done(struct kvm_vm *vm) in clear_log_create_vm_done()
168 static void dirty_log_collect_dirty_pages(struct kvm_vm *vm, int slot, in dirty_log_collect_dirty_pages()
174 static void clear_log_collect_dirty_pages(struct kvm_vm *vm, int slot, in clear_log_collect_dirty_pages()
232 static void log_mode_create_vm_done(struct kvm_vm *vm) in log_mode_create_vm_done()
240 static void log_mode_collect_dirty_pages(struct kvm_vm *vm, int slot, in log_mode_collect_dirty_pages()
261 struct kvm_vm *vm = data; in vcpu_worker() local
360 struct kvm_vm *vm; in create_vm() local
382 struct kvm_vm *vm; in run_test() local

123456789