/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() 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 …]
|
/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() 91 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall()
|
/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() 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 …]
|
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()
|
/tools/testing/selftests/kvm/x86_64/ |
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() local
|
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() local
|
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() local
|
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() local
|
D | user_msr_test.c | 134 static int handle_ucall(struct kvm_vm *vm) in handle_ucall() 199 struct kvm_vm *vm; in main() local
|
D | set_sregs_test.c | 30 struct kvm_vm *vm; in main() local
|
D | svm_vmcall_test.c | 17 static struct kvm_vm *vm; variable
|
D | vmx_close_while_nested_test.c | 28 static struct kvm_vm *vm; variable
|
/tools/testing/selftests/kvm/ |
D | set_memory_region_test.c | 57 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
|
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() local
|
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() 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
|
D | demand_paging_test.c | 49 struct kvm_vm *vm = perf_test_args.vm; in vcpu_worker() local 202 static int setup_demand_paging(struct kvm_vm *vm, in setup_demand_paging() 260 struct kvm_vm *vm; in run_test() local
|
D | dirty_log_perf_test.c | 37 struct kvm_vm *vm = perf_test_args.vm; in vcpu_worker() local 99 struct kvm_vm *vm; in run_test() local
|
D | kvm_create_max_vcpus.c | 25 struct kvm_vm *vm; in test_vcpu_creation() local
|
/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()
|
/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()
|
/tools/testing/selftests/kvm/include/ |
D | perf_test_util.h | 52 struct kvm_vm *vm; member 96 struct kvm_vm *vm; in create_vm() local 171 static void add_vcpus(struct kvm_vm *vm, int vcpus, uint64_t vcpu_memory_bytes) in add_vcpus()
|
/tools/testing/selftests/kvm/s390x/ |
D | memop.c | 34 struct kvm_vm *vm; in main() local
|