Home
last modified time | relevance | path

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

12

/Linux-v5.10/tools/testing/selftests/kvm/include/
Dkvm_util.h24 struct kvm_vm;
65 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap);
66 int vcpu_enable_cap(struct kvm_vm *vm, uint32_t vcpu_id,
68 void vm_enable_dirty_ring(struct kvm_vm *vm, uint32_t ring_size);
70 struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm);
71 void kvm_vm_free(struct kvm_vm *vmp);
72 void kvm_vm_restart(struct kvm_vm *vmp, int perm);
73 void kvm_vm_release(struct kvm_vm *vmp);
74 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log);
75 void kvm_vm_clear_dirty_log(struct kvm_vm *vm, int slot, void *log,
[all …]
Dperf_test_util.h52 struct kvm_vm *vm;
93 static struct kvm_vm *create_vm(enum vm_guest_mode mode, int vcpus, in create_vm()
96 struct kvm_vm *vm; in create_vm()
171 static void add_vcpus(struct kvm_vm *vm, int vcpus, uint64_t vcpu_memory_bytes) in add_vcpus()
/Linux-v5.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()
183 struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm) in vm_create()
185 struct kvm_vm *vm; in vm_create()
287 void kvm_vm_restart(struct kvm_vm *vmp, int perm) in kvm_vm_restart()
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()
[all …]
Dkvm_util_internal.h33 struct kvm_vm { struct
57 struct vcpu *vcpu_find(struct kvm_vm *vm, uint32_t vcpuid); argument
74 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
111 memslot2region(struct kvm_vm *vm, uint32_t memslot);
/Linux-v5.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()
/Linux-v5.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()
163 struct kvm_vm *vm_create_default(uint32_t vcpuid, uint64_t extra_mem_pages, in vm_create_default()
172 struct kvm_vm *vm; in vm_create_default()
183 void vm_vcpu_add_default(struct kvm_vm *vm, uint32_t vcpuid, void *guest_code) in vm_vcpu_add_default()
[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()
/Linux-v5.10/tools/testing/selftests/kvm/include/aarch64/
Dprocessor.h39 static inline void get_reg(struct kvm_vm *vm, uint32_t vcpuid, uint64_t id, uint64_t *addr) in get_reg()
47 static inline void set_reg(struct kvm_vm *vm, uint32_t vcpuid, uint64_t id, uint64_t val) in set_reg()
55 void aarch64_vcpu_setup(struct kvm_vm *vm, int vcpuid, struct kvm_vcpu_init *init);
56 void aarch64_vcpu_add_default(struct kvm_vm *vm, uint32_t vcpuid,
/Linux-v5.10/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h319 struct kvm_x86_state *vcpu_save_state(struct kvm_vm *vm, uint32_t vcpuid);
320 void vcpu_load_state(struct kvm_vm *vm, uint32_t vcpuid,
326 void vcpu_set_cpuid(struct kvm_vm *vm, uint32_t vcpuid,
338 uint64_t vcpu_get_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index);
339 int _vcpu_set_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index,
341 void vcpu_set_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index,
360 void vm_init_descriptor_tables(struct kvm_vm *vm);
361 void vcpu_init_descriptor_tables(struct kvm_vm *vm, uint32_t vcpuid);
362 void vm_handle_exception(struct kvm_vm *vm, int vector,
Dvmx.h605 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva);
613 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm,
615 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm,
618 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm,
620 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm,
622 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm,
Dsvm_util.h33 struct svm_test_data *vcpu_alloc_svm(struct kvm_vm *vm, vm_vaddr_t *p_svm_gva);
/Linux-v5.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()
/Linux-v5.10/tools/testing/selftests/kvm/
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()
186 void (*create_vm_done)(struct kvm_vm *vm);
188 void (*collect_dirty_pages) (struct kvm_vm *vm, int slot,
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()
357 static struct kvm_vm *create_vm(enum vm_guest_mode mode, uint32_t vcpuid, in create_vm()
360 struct kvm_vm *vm; in create_vm()
[all …]
Dset_memory_region_test.c57 struct kvm_vm *vm = data; in vcpu_worker()
116 static struct kvm_vm *spawn_vm(pthread_t *vcpu_thread, void *guest_code) in spawn_vm()
118 struct kvm_vm *vm; in spawn_vm()
185 struct kvm_vm *vm; in test_move_memory_region()
265 struct kvm_vm *vm; in test_delete_memory_region()
315 struct kvm_vm *vm; in test_zero_memory_regions()
341 struct kvm_vm *vm; in test_add_max_memory_regions()
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()
/Linux-v5.10/tools/testing/selftests/kvm/x86_64/
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()
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()
Dhyperv_cpuid.c113 void test_hv_cpuid_e2big(struct kvm_vm *vm) in test_hv_cpuid_e2big()
126 struct kvm_cpuid2 *kvm_get_supported_hv_cpuid(struct kvm_vm *vm) in kvm_get_supported_hv_cpuid()
148 struct kvm_vm *vm; in main()
Dkvm_pv_test.c176 static void enter_guest(struct kvm_vm *vm) in enter_guest()
211 struct kvm_vm *vm; in main()
Duser_msr_test.c134 static int handle_ucall(struct kvm_vm *vm) in handle_ucall()
199 struct kvm_vm *vm; in main()
Dtsc_msrs_test.c78 static void run_vcpu(struct kvm_vm *vm, uint32_t vcpuid, int stage) in run_vcpu()
106 struct kvm_vm *vm; in main()
Dset_sregs_test.c30 struct kvm_vm *vm; in main()

12