Home
last modified time | relevance | path

Searched refs:kvm_vm (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.1.9/tools/testing/selftests/kvm/include/
Dkvm_util_base.h51 struct kvm_vm *vm;
67 struct kvm_vm { struct
105 memslot2region(struct kvm_vm *vm, uint32_t memslot); argument
215 static __always_inline void static_assert_is_vm(struct kvm_vm *vm) { } in static_assert_is_vm()
256 static inline int vm_check_cap(struct kvm_vm *vm, long cap) in vm_check_cap()
264 static inline int __vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) in __vm_enable_cap()
270 static inline void vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) in vm_enable_cap()
277 void vm_enable_dirty_ring(struct kvm_vm *vm, uint32_t ring_size);
280 void kvm_vm_free(struct kvm_vm *vmp);
281 void kvm_vm_restart(struct kvm_vm *vmp);
[all …]
Dperf_test_util.h33 struct kvm_vm *vm;
48 struct kvm_vm *perf_test_create_vm(enum vm_guest_mode mode, int nr_vcpus,
52 void perf_test_destroy_vm(struct kvm_vm *vm);
54 void perf_test_set_wr_fract(struct kvm_vm *vm, int wr_fract);
61 void perf_test_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu *vcpus[]);
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dsev_migrate_tests.c50 static struct kvm_vm *sev_vm_create(bool es) in sev_vm_create()
52 struct kvm_vm *vm; in sev_vm_create()
68 static struct kvm_vm *aux_vm_create(bool with_vcpus) in aux_vm_create()
70 struct kvm_vm *vm; in aux_vm_create()
83 static int __sev_migrate_from(struct kvm_vm *dst, struct kvm_vm *src) in __sev_migrate_from()
89 static void sev_migrate_from(struct kvm_vm *dst, struct kvm_vm *src) in sev_migrate_from()
99 struct kvm_vm *src_vm; in test_sev_migrate_from()
100 struct kvm_vm *dst_vms[NR_MIGRATE_TEST_VMS]; in test_sev_migrate_from()
125 struct kvm_vm *vm;
126 struct kvm_vm *source_vms[NR_LOCK_TESTING_THREADS];
[all …]
Dset_boot_cpu_id.c76 static struct kvm_vm *create_vm(uint32_t nr_vcpus, uint32_t bsp_vcpu_id, in create_vm()
79 struct kvm_vm *vm; in create_vm()
95 struct kvm_vm *vm; in run_vm_bsp()
108 struct kvm_vm *vm; in check_set_bsp_busy()
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c122 void vm_enable_dirty_ring(struct kvm_vm *vm, uint32_t ring_size) in vm_enable_dirty_ring()
131 static void vm_open(struct kvm_vm *vm) in vm_open()
188 struct kvm_vm *____vm_create(enum vm_guest_mode mode, uint64_t nr_pages) in ____vm_create()
190 struct kvm_vm *vm; in ____vm_create()
332 struct kvm_vm *__vm_create(enum vm_guest_mode mode, uint32_t nr_runnable_vcpus, in __vm_create()
337 struct kvm_vm *vm; in __vm_create()
368 struct kvm_vm *__vm_create_with_vcpus(enum vm_guest_mode mode, uint32_t nr_vcpus, in __vm_create_with_vcpus()
372 struct kvm_vm *vm; in __vm_create_with_vcpus()
385 struct kvm_vm *__vm_create_with_one_vcpu(struct kvm_vcpu **vcpu, in __vm_create_with_one_vcpu()
390 struct kvm_vm *vm; in __vm_create_with_one_vcpu()
[all …]
Dperf_test_util.c73 void perf_test_setup_vcpus(struct kvm_vm *vm, int nr_vcpus, in perf_test_setup_vcpus()
109 struct kvm_vm *perf_test_create_vm(enum vm_guest_mode mode, int nr_vcpus, in perf_test_create_vm()
115 struct kvm_vm *vm; in perf_test_create_vm()
220 void perf_test_destroy_vm(struct kvm_vm *vm) in perf_test_destroy_vm()
226 void perf_test_set_wr_fract(struct kvm_vm *vm, int wr_fract) in perf_test_set_wr_fract()
237 void __weak perf_test_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu **vcpus) in perf_test_setup_nested()
/linux-6.1.9/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_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
88 static void _virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in _virt_pg_map()
[all …]
Ducall.c11 static bool ucall_mmio_init(struct kvm_vm *vm, vm_paddr_t gpa) in ucall_mmio_init()
24 void ucall_init(struct kvm_vm *vm, void *arg) in ucall_init()
67 void ucall_uninit(struct kvm_vm *vm) in ucall_uninit()
/linux-6.1.9/tools/testing/selftests/kvm/s390x/
Dmemop.c103 struct kvm_vm *vm;
215 struct kvm_vm *kvm_vm; member
228 t.kvm_vm = vm_create_with_one_vcpu(&vcpu, guest_code); in test_default_init()
229 t.vm = (struct test_info) { t.kvm_vm, NULL }; in test_default_init()
230 t.vcpu = (struct test_info) { t.kvm_vm, vcpu }; in test_default_init()
315 kvm_vm_free(t.kvm_vm); in test_copy()
381 kvm_vm_free(t.kvm_vm); in test_copy_key()
414 kvm_vm_free(t.kvm_vm); in test_copy_key_storage_prot_override()
428 kvm_vm_free(t.kvm_vm); in test_copy_key_fetch_prot()
461 kvm_vm_free(t.kvm_vm); in test_errors_key()
[all …]
Dresets.c205 static struct kvm_vm *create_vm(struct kvm_vcpu **vcpu) in create_vm()
207 struct kvm_vm *vm; in create_vm()
219 struct kvm_vm *vm; in test_normal()
242 struct kvm_vm *vm; in test_initial()
265 struct kvm_vm *vm; in test_clear()
/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c13 void virt_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
36 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri) in virt_alloc_region()
49 void virt_arch_pg_map(struct kvm_vm *vm, uint64_t gva, uint64_t gpa) in virt_arch_pg_map()
88 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa()
113 static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_ptes()
127 static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_region()
149 void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_arch_dump()
157 struct kvm_vcpu *vm_arch_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, in vm_arch_vcpu_add()
/linux-6.1.9/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c30 static void arch_setup_vm(struct kvm_vm *vm, unsigned int nr_vcpus) in arch_setup_vm()
39 static void arch_cleanup_vm(struct kvm_vm *vm) in arch_cleanup_vm()
47 static void arch_setup_vm(struct kvm_vm *vm, unsigned int nr_vcpus) in arch_setup_vm()
51 static void arch_cleanup_vm(struct kvm_vm *vm) in arch_cleanup_vm()
137 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging()
149 static inline void enable_dirty_logging(struct kvm_vm *vm, int slots) in enable_dirty_logging()
154 static inline void disable_dirty_logging(struct kvm_vm *vm, int slots) in disable_dirty_logging()
159 static void get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) in get_dirty_log()
170 static void clear_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], in clear_dirty_log()
211 struct kvm_vm *vm; in run_test()
Daccess_tracking_perf_test.c97 static uint64_t lookup_pfn(int pagemap_fd, struct kvm_vm *vm, uint64_t gva) in lookup_pfn()
128 static void mark_vcpu_memory_idle(struct kvm_vm *vm, in mark_vcpu_memory_idle()
226 struct kvm_vm *vm = perf_test_args.vm; in vcpu_thread_main()
259 static void run_iteration(struct kvm_vm *vm, int nr_vcpus, const char *description) in run_iteration()
279 static void access_memory(struct kvm_vm *vm, int nr_vcpus, in access_memory()
287 static void mark_memory_idle(struct kvm_vm *vm, int nr_vcpus) in mark_memory_idle()
303 struct kvm_vm *vm; in run_test()
Dset_memory_region_test.c111 static struct kvm_vm *spawn_vm(struct kvm_vcpu **vcpu, pthread_t *vcpu_thread, in spawn_vm()
114 struct kvm_vm *vm; in spawn_vm()
180 struct kvm_vm *vm; in test_move_memory_region()
261 struct kvm_vm *vm; in test_delete_memory_region()
312 struct kvm_vm *vm; in test_zero_memory_regions()
337 struct kvm_vm *vm; in test_add_max_memory_regions()
Dmemslot_modification_stress_test.c62 struct kvm_vm *vm;
67 static void add_remove_memslot(struct kvm_vm *vm, useconds_t delay, in add_remove_memslot()
98 struct kvm_vm *vm; in run_test()
/linux-6.1.9/tools/testing/selftests/kvm/include/aarch64/
Dvgic.h19 int vgic_v3_setup(struct kvm_vm *vm, unsigned int nr_vcpus, uint32_t nr_irqs,
27 void kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level);
28 int _kvm_arm_irq_line(struct kvm_vm *vm, uint32_t intid, int level);
Dprocessor.h51 struct kvm_vcpu *aarch64_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id,
103 void vm_init_descriptor_tables(struct kvm_vm *vm);
107 void vm_install_exception_handler(struct kvm_vm *vm,
109 void vm_install_sync_handler(struct kvm_vm *vm,
/linux-6.1.9/tools/testing/selftests/kvm/include/x86_64/
Dvmx.h560 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva);
567 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm,
569 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm,
571 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm,
573 void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm,
575 bool kvm_vm_has_ept(struct kvm_vm *vm);
576 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm,
578 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm);
/linux-6.1.9/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c16 static uint64_t page_align(struct kvm_vm *vm, uint64_t v) in page_align()
21 static uint64_t pte_addr(struct kvm_vm *vm, uint64_t entry) in pte_addr()
27 static uint64_t ptrs_per_pte(struct kvm_vm *vm) in ptrs_per_pte()
46 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva, int level) in pte_index()
56 void virt_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
67 void virt_arch_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr) in virt_arch_pg_map()
111 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa()
140 static void pte_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent, in pte_dump()
162 void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_arch_dump()
183 struct kvm_vm *vm = vcpu->vm; in riscv_vcpu_mmu_setup()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c122 void virt_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
134 static void *virt_get_pte(struct kvm_vm *vm, uint64_t pt_pfn, uint64_t vaddr, in virt_get_pte()
143 static uint64_t *virt_create_upper_pte(struct kvm_vm *vm, in virt_create_upper_pte()
174 void __virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, int level) in __virt_pg_map()
220 void virt_arch_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr) in virt_arch_pg_map()
225 void virt_map_level(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in virt_map_level()
244 static uint64_t *_vm_get_page_table_entry(struct kvm_vm *vm, in _vm_get_page_table_entry()
316 uint64_t vm_get_page_table_entry(struct kvm_vm *vm, struct kvm_vcpu *vcpu, in vm_get_page_table_entry()
324 void vm_set_page_table_entry(struct kvm_vm *vm, struct kvm_vcpu *vcpu, in vm_set_page_table_entry()
332 void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_arch_dump()
[all …]
Dvmx.c75 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx()
387 static void nested_create_pte(struct kvm_vm *vm, in nested_create_pte()
419 void __nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in __nested_pg_map()
470 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_pg_map()
493 void __nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in __nested_map()
510 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map()
519 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map_memslot()
541 void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_identity_map_1g()
547 bool kvm_vm_has_ept(struct kvm_vm *vm) in kvm_vm_has_ept()
563 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, in prepare_eptp()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dvcpu_width_config.c25 struct kvm_vm *vm; in add_init_2vcpus()
51 struct kvm_vm *vm; in add_2vcpus_init_2vcpus()
82 struct kvm_vm *vm; in main()
Darch_timer.c218 struct kvm_vm *vm = vcpu->vm; in test_vcpu_run()
313 static void test_run(struct kvm_vm *vm) in test_run()
348 static void test_init_timer_irq(struct kvm_vm *vm) in test_init_timer_irq()
364 static struct kvm_vm *test_vm_create(void) in test_vm_create()
366 struct kvm_vm *vm; in test_vm_create()
389 static void test_vm_cleanup(struct kvm_vm *vm) in test_vm_cleanup()
463 struct kvm_vm *vm; in main()
Dpsci_test.c75 static struct kvm_vm *setup_vm(void *guest_code, struct kvm_vcpu **source, in setup_vm()
79 struct kvm_vm *vm; in setup_vm()
137 struct kvm_vm *vm; in host_test_cpu_on()
174 struct kvm_vm *vm; in host_test_system_suspend()
Dhypercalls.c233 static struct kvm_vm *test_vm_create(struct kvm_vcpu **vcpu) in test_vm_create()
235 struct kvm_vm *vm; in test_vm_create()
245 static void test_guest_stage(struct kvm_vm **vm, struct kvm_vcpu **vcpu) in test_guest_stage()
275 struct kvm_vm *vm; in test_run()

12345