/external/linux-kselftest/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 24 struct kvm_vm; 54 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap); 56 struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm); 57 void kvm_vm_free(struct kvm_vm *vmp); 58 void kvm_vm_restart(struct kvm_vm *vmp, int perm); 59 void kvm_vm_release(struct kvm_vm *vmp); 60 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log); 62 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva, 65 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename, 68 void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent); [all …]
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/ |
D | processor.c | 17 static uint64_t page_align(struct kvm_vm *vm, uint64_t v) in page_align() 22 static uint64_t pgd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pgd_index() 30 static uint64_t pud_index(struct kvm_vm *vm, vm_vaddr_t gva) in pud_index() 41 static uint64_t pmd_index(struct kvm_vm *vm, vm_vaddr_t gva) in pmd_index() 52 static uint64_t pte_index(struct kvm_vm *vm, vm_vaddr_t gva) in pte_index() 58 static uint64_t pte_addr(struct kvm_vm *vm, uint64_t entry) in pte_addr() 64 static uint64_t ptrs_per_pgd(struct kvm_vm *vm) in ptrs_per_pgd() 70 static uint64_t ptrs_per_pte(struct kvm_vm *vm) in ptrs_per_pte() 75 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 …]
|
/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() 125 struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm) in vm_create() 127 struct kvm_vm *vm; in vm_create() 202 void kvm_vm_restart(struct kvm_vm *vmp, int perm) in kvm_vm_restart() 224 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log) in kvm_vm_get_dirty_log() 254 userspace_mem_region_find(struct kvm_vm *vm, uint64_t start, uint64_t end) in userspace_mem_region_find() 287 kvm_userspace_memory_region_find(struct kvm_vm *vm, uint64_t start, in kvm_userspace_memory_region_find() 315 struct vcpu *vcpu_find(struct kvm_vm *vm, uint32_t vcpuid) in vcpu_find() 340 static void vm_vcpu_rm(struct kvm_vm *vm, uint32_t vcpuid) in vm_vcpu_rm() [all …]
|
D | kvm_util_internal.h | 45 struct kvm_vm { struct 66 struct vcpu *vcpu_find(struct kvm_vm *vm, uint32_t vcpuid); argument 67 void vcpu_setup(struct kvm_vm *vm, int vcpuid, int pgd_memslot, 69 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
|
D | ucall.c | 15 static bool ucall_mmio_init(struct kvm_vm *vm, vm_paddr_t gpa) in ucall_mmio_init() 28 void ucall_init(struct kvm_vm *vm, ucall_type_t type, void *arg) in ucall_init() 73 void ucall_uninit(struct kvm_vm *vm) in ucall_uninit() 119 uint64_t get_ucall(struct kvm_vm *vm, uint32_t vcpu_id, struct ucall *uc) in get_ucall()
|
D | elf.c | 115 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename, in kvm_vm_elf_load()
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 230 void virt_pgd_alloc(struct kvm_vm *vm, uint32_t pgd_memslot) in virt_pgd_alloc() 261 void virt_pg_map(struct kvm_vm *vm, uint64_t vaddr, uint64_t paddr, in virt_pg_map() 346 void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) in virt_dump() 444 static void kvm_seg_fill_gdt_64bit(struct kvm_vm *vm, struct kvm_segment *segp) in kvm_seg_fill_gdt_64bit() 480 static void kvm_seg_set_kernel_code_64bit(struct kvm_vm *vm, uint16_t selector, in kvm_seg_set_kernel_code_64bit() 511 static void kvm_seg_set_kernel_data_64bit(struct kvm_vm *vm, uint16_t selector, in kvm_seg_set_kernel_data_64bit() 545 vm_paddr_t addr_gva2gpa(struct kvm_vm *vm, vm_vaddr_t gva) in addr_gva2gpa() 587 static void kvm_setup_gdt(struct kvm_vm *vm, struct kvm_dtable *dt, int gdt_memslot, in kvm_setup_gdt() 598 static void kvm_setup_tss_64bit(struct kvm_vm *vm, struct kvm_segment *segp, in kvm_setup_tss_64bit() 615 void vcpu_setup(struct kvm_vm *vm, int vcpuid, int pgd_memslot, int gdt_memslot) in vcpu_setup() [all …]
|
D | vmx.c | 30 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx()
|
/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 | set_sregs_test.c | 32 struct kvm_vm *vm; in main()
|
D | cr4_cpuid_sync_test.c | 67 struct kvm_vm *vm; in main()
|
D | vmx_tsc_adjust_test.c | 63 static struct kvm_vm *vm;
|
D | evmcs_test.c | 80 struct kvm_vm *vm; in main()
|
D | state_test.c | 129 struct kvm_vm *vm; in main()
|
D | sync_regs_test.c | 76 struct kvm_vm *vm; in main()
|
/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()
|
/external/linux-kselftest/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 113 struct kvm_vm *vm = data; in vcpu_worker() 211 static struct kvm_vm *create_vm(enum vm_guest_mode mode, uint32_t vcpuid, in create_vm() 214 struct kvm_vm *vm; in create_vm() 231 struct kvm_vm *vm; in run_test()
|
/external/linux-kselftest/tools/testing/selftests/kvm/include/x86_64/ |
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, 312 void vcpu_set_cpuid(struct kvm_vm *vm, uint32_t vcpuid, 324 uint64_t vcpu_get_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index); 325 void vcpu_set_msr(struct kvm_vm *vm, uint32_t vcpuid, uint64_t msr_index,
|
D | vmx.h | 576 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva);
|