/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/ |
D | sync_regs_test.c | 24 #define VCPU_ID 5 macro 97 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 99 run = vcpu_state(vm, VCPU_ID); in main() 103 rv = _vcpu_run(vm, VCPU_ID); in main() 107 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main() 110 rv = _vcpu_run(vm, VCPU_ID); in main() 114 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main() 118 rv = _vcpu_run(vm, VCPU_ID); in main() 122 vcpu_state(vm, VCPU_ID)->kvm_dirty_regs = 0; in main() 125 rv = _vcpu_run(vm, VCPU_ID); in main() [all …]
|
D | evmcs_test.c | 20 #define VCPU_ID 5 macro 94 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 96 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 104 vcpu_ioctl(vm, VCPU_ID, KVM_ENABLE_CAP, &enable_evmcs_cap); in main() 106 run = vcpu_state(vm, VCPU_ID); in main() 108 vcpu_regs_get(vm, VCPU_ID, ®s1); in main() 111 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 114 _vcpu_run(vm, VCPU_ID); in main() 121 vcpu_regs_get(vm, VCPU_ID, ®s1); in main() 122 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() [all …]
|
D | state_test.c | 23 #define VCPU_ID 5 macro 138 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 139 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 140 run = vcpu_state(vm, VCPU_ID); in main() 142 vcpu_regs_get(vm, VCPU_ID, ®s1); in main() 146 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 149 vcpu_args_set(vm, VCPU_ID, 1, 0); in main() 153 _vcpu_run(vm, VCPU_ID); in main() 160 vcpu_regs_get(vm, VCPU_ID, ®s1); in main() 161 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() [all …]
|
D | platform_info_test.c | 24 #define VCPU_ID 0 macro 50 struct kvm_run *run = vcpu_state(vm, VCPU_ID); in test_msr_platform_info_enabled() 54 vcpu_run(vm, VCPU_ID); in test_msr_platform_info_enabled() 59 get_ucall(vm, VCPU_ID, &uc); in test_msr_platform_info_enabled() 71 struct kvm_run *run = vcpu_state(vm, VCPU_ID); in test_msr_platform_info_disabled() 74 vcpu_run(vm, VCPU_ID); in test_msr_platform_info_disabled() 98 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 100 msr_platform_info = vcpu_get_msr(vm, VCPU_ID, MSR_PLATFORM_INFO); in main() 101 vcpu_set_msr(vm, VCPU_ID, MSR_PLATFORM_INFO, in main() 105 vcpu_set_msr(vm, VCPU_ID, MSR_PLATFORM_INFO, msr_platform_info); in main()
|
D | cr4_cpuid_sync_test.c | 24 #define VCPU_ID 1 macro 83 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 84 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 85 run = vcpu_state(vm, VCPU_ID); in main() 88 rc = _vcpu_run(vm, VCPU_ID); in main() 91 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() 94 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 96 vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
|
D | set_sregs_test.c | 27 #define VCPU_ID 5 macro 39 vm = vm_create_default(VCPU_ID, 0, NULL); in main() 41 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 43 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main() 47 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
|
D | vmx_tsc_adjust_test.c | 38 #define VCPU_ID 5 macro 141 vm = vm_create_default(VCPU_ID, 0, (void *) l1_guest_code); in main() 142 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 146 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 149 volatile struct kvm_run *run = vcpu_state(vm, VCPU_ID); in main() 152 vcpu_run(vm, VCPU_ID); in main() 158 switch (get_ucall(vm, VCPU_ID, &uc)) { in main()
|
/external/linux-kselftest/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 24 #define VCPU_ID 1 macro 119 run = vcpu_state(vm, VCPU_ID); in vcpu_worker() 126 ret = _vcpu_run(vm, VCPU_ID); in vcpu_worker() 127 if (get_ucall(vm, VCPU_ID, &uc) == UCALL_SYNC) { in vcpu_worker() 276 vm = create_vm(mode, VCPU_ID, guest_num_pages, guest_code); in run_test() 293 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in run_test()
|
/external/kernel-headers/original/uapi/asm-x86/asm/ |
D | kvm_perf.h | 11 #define VCPU_ID "vcpu_id" macro
|