Home
last modified time | relevance | path

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

12345

/tools/testing/selftests/kvm/s390x/
Dcmma_test.c102 static void create_main_memslot(struct kvm_vm *vm) in create_main_memslot()
112 static void create_test_memslot(struct kvm_vm *vm) in create_test_memslot()
124 static void create_memslots(struct kvm_vm *vm) in create_memslots()
144 static void finish_vm_setup(struct kvm_vm *vm) in finish_vm_setup()
158 struct kvm_vm *vm; in create_vm_two_memslots() local
169 static void enable_cmma(struct kvm_vm *vm) in enable_cmma()
177 static void enable_dirty_tracking(struct kvm_vm *vm) in enable_dirty_tracking()
183 static int __enable_migration_mode(struct kvm_vm *vm) in __enable_migration_mode()
192 static void enable_migration_mode(struct kvm_vm *vm) in enable_migration_mode()
199 static bool is_migration_mode_on(struct kvm_vm *vm) in is_migration_mode_on()
[all …]
Dresets.c207 struct kvm_vm *vm; in create_vm() local
219 struct kvm_vm *vm; in test_normal() local
242 struct kvm_vm *vm; in test_initial() local
265 struct kvm_vm *vm; in test_clear() local
Ddebug_test.c24 struct kvm_vm *vm; in test_step_int_1() local
46 struct kvm_vm *vm; in test_step_int() local
83 struct kvm_vm *vm; in test_step_pgm_diag() local
/tools/testing/selftests/kvm/lib/
Dkvm_util.c128 void vm_enable_dirty_ring(struct kvm_vm *vm, uint32_t ring_size) in vm_enable_dirty_ring()
137 static void vm_open(struct kvm_vm *vm) in vm_open()
203 __weak void vm_vaddr_populate_bitmap(struct kvm_vm *vm) in vm_vaddr_populate_bitmap()
214 struct kvm_vm *vm; in ____vm_create() local
356 struct kvm_vm *vm; in __vm_create() local
407 struct kvm_vm *vm; in __vm_create_with_vcpus() local
425 struct kvm_vm *vm; in __vm_create_with_one_vcpu() local
468 __weak struct kvm_vcpu *vm_arch_vcpu_recreate(struct kvm_vm *vm, in vm_arch_vcpu_recreate()
474 struct kvm_vcpu *vm_recreate_with_one_vcpu(struct kvm_vm *vm) in vm_recreate_with_one_vcpu()
571 userspace_mem_region_find(struct kvm_vm *vm, uint64_t start, uint64_t end) in userspace_mem_region_find()
[all …]
Dmemstress.c89 void memstress_setup_vcpus(struct kvm_vm *vm, int nr_vcpus, in memstress_setup_vcpus()
131 struct kvm_vm *vm; in memstress_create_vm() local
234 void memstress_destroy_vm(struct kvm_vm *vm) in memstress_destroy_vm()
239 void memstress_set_write_percent(struct kvm_vm *vm, uint32_t write_percent) in memstress_set_write_percent()
245 void memstress_set_random_seed(struct kvm_vm *vm, uint32_t random_seed) in memstress_set_random_seed()
251 void memstress_set_random_access(struct kvm_vm *vm, bool random_access) in memstress_set_random_access()
262 void __weak memstress_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu **vcpus) in memstress_setup_nested()
328 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging()
340 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_enable_dirty_logging()
345 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_disable_dirty_logging()
[all …]
/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c20 static uint64_t page_align(struct kvm_vm *vm, uint64_t v) in page_align()
25 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index()
33 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index()
44 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index()
55 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index()
61 static uint64_t addr_pte(struct kvm_vm *vm, uint64_t pa, uint64_t attrs) in addr_pte()
73 static uint64_t pte_addr(struct kvm_vm *vm, uint64_t pte) in pte_addr()
84 static uint64_t ptrs_per_pgd(struct kvm_vm *vm) in ptrs_per_pgd()
90 static uint64_t __maybe_unused ptrs_per_pte(struct kvm_vm *vm) in ptrs_per_pte()
95 void virt_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
[all …]
/tools/testing/selftests/kvm/aarch64/
Dsmccc_filter.c40 static int __set_smccc_filter(struct kvm_vm *vm, uint32_t start, uint32_t nr_functions, in __set_smccc_filter()
53 static void set_smccc_filter(struct kvm_vm *vm, uint32_t start, uint32_t nr_functions, in set_smccc_filter()
64 struct kvm_vm *vm; in setup_vm() local
82 struct kvm_vm *vm = setup_vm(&vcpu); in test_pad_must_be_zero() local
101 struct kvm_vm *vm = setup_vm(&vcpu); in test_filter_reserved_range() local
123 struct kvm_vm *vm = setup_vm(&vcpu); in test_invalid_nr_functions() local
136 struct kvm_vm *vm = setup_vm(&vcpu); in test_overflow_nr_functions() local
149 struct kvm_vm *vm = setup_vm(&vcpu); in test_reserved_action() local
164 struct kvm_vm *vm = setup_vm(&vcpu); in test_filter_overlap() local
192 struct kvm_vm *vm; in test_filter_denied() local
[all …]
Dvcpu_width_config.c25 struct kvm_vm *vm; in add_init_2vcpus() local
51 struct kvm_vm *vm; in add_2vcpus_init_2vcpus() local
82 struct kvm_vm *vm; in main() local
Darch_timer.c230 struct kvm_vm *vm = vcpu->vm; in test_vcpu_run() local
321 static void test_run(struct kvm_vm *vm) in test_run()
356 static void test_init_timer_irq(struct kvm_vm *vm) in test_init_timer_irq()
374 struct kvm_vm *vm; in test_vm_create() local
403 static void test_vm_cleanup(struct kvm_vm *vm) in test_vm_cleanup()
467 struct kvm_vm *vm; in main() local
Dpage_fault_test.c364 static void setup_uffd(struct kvm_vm *vm, struct test_params *p, in setup_uffd()
407 static bool punch_hole_in_backing_store(struct kvm_vm *vm, in punch_hole_in_backing_store()
426 static void mmio_on_test_gpa_handler(struct kvm_vm *vm, struct kvm_run *run) in mmio_on_test_gpa_handler()
440 static void mmio_no_handler(struct kvm_vm *vm, struct kvm_run *run) in mmio_no_handler()
451 static bool check_write_in_dirty_log(struct kvm_vm *vm, in check_write_in_dirty_log()
468 static bool handle_cmd(struct kvm_vm *vm, int cmd) in handle_cmd()
527 static void load_exec_code_for_test(struct kvm_vm *vm) in load_exec_code_for_test()
541 static void setup_abort_handlers(struct kvm_vm *vm, struct kvm_vcpu *vcpu, in setup_abort_handlers()
553 static void setup_gva_maps(struct kvm_vm *vm) in setup_gva_maps()
576 static void setup_memslots(struct kvm_vm *vm, struct test_params *p) in setup_memslots()
[all …]
/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()
69 void virt_arch_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr) in virt_arch_pg_map()
113 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa()
142 static void pte_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent, in pte_dump()
164 void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_arch_dump()
185 struct kvm_vm *vm = vcpu->vm; in riscv_vcpu_mmu_setup() local
[all …]
/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c13 void virt_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
37 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri) in virt_alloc_region()
50 void virt_arch_pg_map(struct kvm_vm *vm, uint64_t gva, uint64_t gpa) in virt_arch_pg_map()
89 vm_paddr_t addr_arch_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_arch_gva2gpa()
114 static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_ptes()
128 static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_region()
150 void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_arch_dump()
158 struct kvm_vcpu *vm_arch_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, in vm_arch_vcpu_add()
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c125 void virt_arch_pgd_alloc(struct kvm_vm *vm) in virt_arch_pgd_alloc()
137 static void *virt_get_pte(struct kvm_vm *vm, uint64_t *parent_pte, in virt_get_pte()
151 static uint64_t *virt_create_upper_pte(struct kvm_vm *vm, in virt_create_upper_pte()
182 void __virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, int level) in __virt_pg_map()
227 void virt_arch_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr) in virt_arch_pg_map()
232 void virt_map_level(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in virt_map_level()
263 uint64_t *__vm_get_page_table_entry(struct kvm_vm *vm, uint64_t vaddr, in __vm_get_page_table_entry()
299 uint64_t *vm_get_page_table_entry(struct kvm_vm *vm, uint64_t vaddr) in vm_get_page_table_entry()
306 void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_arch_dump()
401 static void kvm_seg_fill_gdt_64bit(struct kvm_vm *vm, struct kvm_segment *segp) in kvm_seg_fill_gdt_64bit()
[all …]
Dvmx.c75 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx()
367 static void nested_create_pte(struct kvm_vm *vm, in nested_create_pte()
399 void __nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in __nested_pg_map()
450 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_pg_map()
473 void __nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in __nested_map()
490 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map()
499 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map_memslot()
521 void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_identity_map_1g()
539 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, in prepare_eptp()
549 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm) in prepare_virtualize_apic_accesses()
/tools/testing/selftests/kvm/
Daccess_tracking_perf_test.c95 static uint64_t lookup_pfn(int pagemap_fd, struct kvm_vm *vm, uint64_t gva) in lookup_pfn()
126 static void mark_vcpu_memory_idle(struct kvm_vm *vm, in mark_vcpu_memory_idle()
229 struct kvm_vm *vm = memstress_args.vm; in vcpu_thread_main() local
262 static void run_iteration(struct kvm_vm *vm, int nr_vcpus, const char *description) in run_iteration()
282 static void access_memory(struct kvm_vm *vm, int nr_vcpus, in access_memory()
290 static void mark_memory_idle(struct kvm_vm *vm, int nr_vcpus) in mark_memory_idle()
306 struct kvm_vm *vm; in run_test() local
Dset_memory_region_test.c114 struct kvm_vm *vm; in spawn_vm() local
183 struct kvm_vm *vm; in test_move_memory_region() local
264 struct kvm_vm *vm; in test_delete_memory_region() local
314 struct kvm_vm *vm; in test_zero_memory_regions() local
336 struct kvm_vm *vm; in test_add_max_memory_regions() local
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()
142 struct kvm_vm *vm; in run_test() local
Dmemslot_modification_stress_test.c60 struct kvm_vm *vm; member
65 static void add_remove_memslot(struct kvm_vm *vm, useconds_t delay, in add_remove_memslot()
96 struct kvm_vm *vm; in run_test() local
Dsteal_time.c81 static void steal_time_dump(struct kvm_vm *vm, uint32_t vcpu_idx) in steal_time_dump()
169 struct kvm_vm *vm = vcpu->vm; in steal_time_init() local
196 static void steal_time_dump(struct kvm_vm *vm, uint32_t vcpu_idx) in steal_time_dump()
245 struct kvm_vm *vm; in main() local
/tools/testing/selftests/kvm/include/
Dkvm_util_base.h66 struct kvm_vm *vm; member
149 #define kvm_for_each_vcpu(vm, i, vcpu) \ argument
158 static inline struct userspace_mem_region *vm_get_mem_region(struct kvm_vm *vm, in vm_get_mem_region()
274 static __always_inline void static_assert_is_vm(struct kvm_vm *vm) { } in static_assert_is_vm()
276 #define __vm_ioctl(vm, cmd, arg) \ argument
282 #define _vm_ioctl(vm, cmd, name, arg) \ argument
289 #define vm_ioctl(vm, cmd, arg) \ argument
315 static inline int vm_check_cap(struct kvm_vm *vm, long cap) in vm_check_cap()
323 static inline int __vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) in __vm_enable_cap()
329 static inline void vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) in vm_enable_cap()
[all …]
/tools/testing/selftests/kvm/x86_64/
Dvmx_pmu_caps_test.c84 struct kvm_vm *vm = vm_create_with_one_vcpu(&vcpu, guest_code); in test_guest_wrmsr_perf_capabilities() local
131 struct kvm_vm *vm = vm_create_with_one_vcpu(&vcpu, NULL); in test_basic_perf_capabilities() local
144 struct kvm_vm *vm = vm_create_with_one_vcpu(&vcpu, NULL); in test_fungible_perf_capabilities() local
170 struct kvm_vm *vm = vm_create_with_one_vcpu(&vcpu, NULL); in test_immutable_perf_capabilities() local
217 struct kvm_vm *vm; in test_lbr_perf_capabilities() local
Dset_boot_cpu_id.c79 struct kvm_vm *vm; in create_vm() local
95 struct kvm_vm *vm; in run_vm_bsp() local
108 struct kvm_vm *vm; in check_set_bsp_busy() local
Duserspace_msr_exit_test.c533 struct kvm_vm *vm; in test_msr_filter_allow() local
652 struct kvm_vm *vm; in test_msr_filter_deny() local
699 struct kvm_vm *vm; in test_msr_permission_bitmap() local
722 #define test_user_exit_msr_ioctl(vm, cmd, arg, flag, valid_mask) \ argument
734 static void run_user_space_msr_flag_test(struct kvm_vm *vm) in run_user_space_msr_flag_test()
751 static void run_msr_filter_flag_test(struct kvm_vm *vm) in run_msr_filter_flag_test()
792 struct kvm_vm *vm; in test_user_exit_msr_flags() local
Dnx_huge_pages_test.c75 static void check_2m_page_count(struct kvm_vm *vm, int expected_pages_2m) in check_2m_page_count()
86 static void check_split_count(struct kvm_vm *vm, int expected_splits) in check_split_count()
112 struct kvm_vm *vm; in run_test() local
Dkvm_clock_test.c77 static void setup_clock(struct kvm_vm *vm, struct test_case *test_case) in setup_clock()
108 struct kvm_vm *vm = vcpu->vm; in enter_guest() local
176 struct kvm_vm *vm; in main() local

12345