/external/linux-kselftest/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 22 struct kvm_vm; 69 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap); 71 struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm); 72 struct kvm_vm *_vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm); 73 void kvm_vm_free(struct kvm_vm *vmp); 74 void kvm_vm_restart(struct kvm_vm *vmp, int perm); 75 void kvm_vm_release(struct kvm_vm *vmp); 76 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log); 77 void kvm_vm_clear_dirty_log(struct kvm_vm *vm, int slot, void *log, 80 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva, [all …]
|
/external/linux-kselftest/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()
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 77 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap) in vm_enable_cap() 88 static void vm_open(struct kvm_vm *vm, int perm) in vm_open() 135 struct kvm_vm *_vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm) in _vm_create() 137 struct kvm_vm *vm; in _vm_create() 237 struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm) in vm_create() 255 void kvm_vm_restart(struct kvm_vm *vmp, int perm) in kvm_vm_restart() 277 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log) in kvm_vm_get_dirty_log() 287 void kvm_vm_clear_dirty_log(struct kvm_vm *vm, int slot, void *log, in kvm_vm_clear_dirty_log() 320 userspace_mem_region_find(struct kvm_vm *vm, uint64_t start, uint64_t end) in userspace_mem_region_find() 353 kvm_userspace_memory_region_find(struct kvm_vm *vm, uint64_t start, in kvm_userspace_memory_region_find() [all …]
|
D | kvm_util_internal.h | 44 struct kvm_vm { struct 66 struct vcpu *vcpu_find(struct kvm_vm *vm, uint32_t vcpuid); argument 67 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent); 72 memslot2region(struct kvm_vm *vm, uint32_t memslot);
|
/external/linux-kselftest/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() 70 void virt_pg_map(struct kvm_vm *vm, uint64_t gva, uint64_t gpa, in virt_pg_map() 130 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa() 155 static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_ptes() 169 static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent, in virt_dump_region() 191 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_dump() 214 struct kvm_vm *vm_create_default(uint32_t vcpuid, uint64_t extra_mem_pages, in vm_create_default() 223 struct kvm_vm *vm; in vm_create_default() 241 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()
|
/external/linux-kselftest/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,
|
/external/linux-kselftest/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() 69 static void test_msr_platform_info_disabled(struct kvm_vm *vm) in test_msr_platform_info_disabled() 83 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() 91 void test_vmx_nested_state(struct kvm_vm *vm) in test_vmx_nested_state() 225 struct kvm_vm *vm; in main()
|
D | hyperv_cpuid.c | 100 void test_hv_cpuid_e2big(struct kvm_vm *vm) in test_hv_cpuid_e2big() 113 struct kvm_cpuid2 *kvm_get_supported_hv_cpuid(struct kvm_vm *vm) in kvm_get_supported_hv_cpuid() 135 struct kvm_vm *vm; in main()
|
D | set_sregs_test.c | 30 struct kvm_vm *vm; in main()
|
D | vmx_close_while_nested_test.c | 28 static struct kvm_vm *vm;
|
D | xss_msr_test.c | 42 struct kvm_vm *vm; in main()
|
D | cr4_cpuid_sync_test.c | 67 struct kvm_vm *vm; in main()
|
D | vmx_dirty_log_test.c | 76 struct kvm_vm *vm; in main()
|
D | smm_test.c | 93 struct kvm_vm *vm; in main()
|
D | vmx_tsc_adjust_test.c | 61 static struct kvm_vm *vm;
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 229 void virt_pgd_alloc(struct kvm_vm *vm, uint32_t pgd_memslot) in virt_pgd_alloc() 258 void virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in virt_pg_map() 343 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_dump() 441 static void kvm_seg_fill_gdt_64bit(struct kvm_vm *vm, struct kvm_segment *segp) in kvm_seg_fill_gdt_64bit() 477 static void kvm_seg_set_kernel_code_64bit(struct kvm_vm *vm, uint16_t selector, in kvm_seg_set_kernel_code_64bit() 508 static void kvm_seg_set_kernel_data_64bit(struct kvm_vm *vm, uint16_t selector, in kvm_seg_set_kernel_data_64bit() 542 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa() 584 static void kvm_setup_gdt(struct kvm_vm *vm, struct kvm_dtable *dt, int gdt_memslot, in kvm_setup_gdt() 595 static void kvm_setup_tss_64bit(struct kvm_vm *vm, struct kvm_segment *segp, in kvm_setup_tss_64bit() 612 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 | 43 int vcpu_enable_evmcs(struct kvm_vm *vm, int vcpu_id) in vcpu_enable_evmcs() 75 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx() 389 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_pg_map() 488 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map() 508 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map_memslot() 530 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, in prepare_eptp()
|
/external/linux-kselftest/tools/testing/selftests/kvm/include/x86_64/ |
D | vmx.h | 578 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva); 585 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, 587 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, 590 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm, 592 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm,
|
D | processor.h | 307 struct kvm_x86_state *vcpu_save_state(struct kvm_vm *vm, uint32_t vcpuid); 308 void vcpu_load_state(struct kvm_vm *vm, uint32_t vcpuid, 314 void vcpu_set_cpuid(struct kvm_vm *vm, uint32_t vcpuid, 326 uint64_t vcpu_get_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index); 327 int _vcpu_set_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index, 329 void vcpu_set_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index,
|
/external/linux-kselftest/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 151 struct kvm_vm *vm = data; in vcpu_worker() 249 static struct kvm_vm *create_vm(enum vm_guest_mode mode, uint32_t vcpuid, in create_vm() 252 struct kvm_vm *vm; in create_vm() 271 struct kvm_vm *vm; in run_test()
|
D | kvm_create_max_vcpus.c | 24 struct kvm_vm *vm; in test_vcpu_creation()
|