/Linux-v5.10/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 24 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 …]
|
D | perf_test_util.h | 52 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/ |
D | kvm_util.c | 78 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 …]
|
D | kvm_util_internal.h | 33 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/ |
D | processor.c | 19 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 …]
|
D | ucall.c | 12 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/ |
D | processor.c | 18 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 …]
|
D | ucall.c | 9 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/ |
D | processor.h | 39 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/ |
D | processor.h | 319 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,
|
D | vmx.h | 605 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,
|
D | svm_util.h | 33 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/ |
D | processor.c | 212 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 …]
|
D | ucall.c | 11 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()
|
D | vmx.c | 46 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/ |
D | dirty_log_test.c | 154 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 …]
|
D | set_memory_region_test.c | 57 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()
|
D | steal_time.c | 63 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/ |
D | platform_info_test.c | 38 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()
|
D | vmx_set_nested_state_test.c | 30 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()
|
D | hyperv_cpuid.c | 113 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()
|
D | kvm_pv_test.c | 176 static void enter_guest(struct kvm_vm *vm) in enter_guest() 211 struct kvm_vm *vm; in main()
|
D | user_msr_test.c | 134 static int handle_ucall(struct kvm_vm *vm) in handle_ucall() 199 struct kvm_vm *vm; in main()
|
D | tsc_msrs_test.c | 78 static void run_vcpu(struct kvm_vm *vm, uint32_t vcpuid, int stage) in run_vcpu() 106 struct kvm_vm *vm; in main()
|
D | set_sregs_test.c | 30 struct kvm_vm *vm; in main()
|