/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/ |
D | evmcs_test.c | 20 #define VCPU_ID 5 macro 84 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 86 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 94 vcpu_enable_evmcs(vm, VCPU_ID); in main() 96 run = vcpu_state(vm, VCPU_ID); in main() 98 vcpu_regs_get(vm, VCPU_ID, ®s1); in main() 101 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 104 _vcpu_run(vm, VCPU_ID); in main() 110 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() 128 state = vcpu_save_state(vm, VCPU_ID); in main() [all …]
|
D | sync_regs_test.c | 23 #define VCPU_ID 5 macro 103 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 105 run = vcpu_state(vm, VCPU_ID); in main() 109 rv = _vcpu_run(vm, VCPU_ID); in main() 113 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main() 116 rv = _vcpu_run(vm, VCPU_ID); in main() 120 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main() 124 rv = _vcpu_run(vm, VCPU_ID); in main() 128 vcpu_state(vm, VCPU_ID)->kvm_dirty_regs = 0; in main() 131 rv = _vcpu_run(vm, VCPU_ID); in main() [all …]
|
D | smm_test.c | 21 #define VCPU_ID 1 macro 99 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 101 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 103 run = vcpu_state(vm, VCPU_ID); in main() 114 vcpu_set_msr(vm, VCPU_ID, MSR_IA32_SMBASE, SMRAM_GPA); in main() 118 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 121 vcpu_args_set(vm, VCPU_ID, 1, 0); in main() 125 _vcpu_run(vm, VCPU_ID); in main() 132 vcpu_regs_get(vm, VCPU_ID, ®s); in main() 144 state = vcpu_save_state(vm, VCPU_ID); in main() [all …]
|
D | state_test.c | 22 #define VCPU_ID 5 macro 132 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 133 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 134 run = vcpu_state(vm, VCPU_ID); in main() 136 vcpu_regs_get(vm, VCPU_ID, ®s1); in main() 140 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 143 vcpu_args_set(vm, VCPU_ID, 1, 0); in main() 147 _vcpu_run(vm, VCPU_ID); in main() 153 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() 171 state = vcpu_save_state(vm, VCPU_ID); 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() 97 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 99 msr_platform_info = vcpu_get_msr(vm, VCPU_ID, MSR_PLATFORM_INFO); in main() 100 vcpu_set_msr(vm, VCPU_ID, MSR_PLATFORM_INFO, in main() 104 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() 96 switch (get_ucall(vm, VCPU_ID, &uc)) { in main() 99 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 101 vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
|
D | vmx_close_while_nested_test.c | 21 #define VCPU_ID 5 macro 59 vm = vm_create_default(VCPU_ID, 0, (void *) l1_guest_code); in main() 60 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 64 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 67 volatile struct kvm_run *run = vcpu_state(vm, VCPU_ID); in main() 70 vcpu_run(vm, VCPU_ID); in main() 79 switch (get_ucall(vm, VCPU_ID, &uc)) { in main()
|
D | set_sregs_test.c | 25 #define VCPU_ID 5 macro 37 vm = vm_create_default(VCPU_ID, 0, NULL); in main() 39 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 41 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main() 45 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
|
D | vmx_dirty_log_test.c | 20 #define VCPU_ID 1 macro 84 vm = vm_create_default(VCPU_ID, 0, l1_guest_code); in main() 85 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 87 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 88 run = vcpu_state(vm, VCPU_ID); in main() 121 _vcpu_run(vm, VCPU_ID); in main() 127 switch (get_ucall(vm, VCPU_ID, &uc)) { in main()
|
D | vmx_tsc_adjust_test.c | 36 #define VCPU_ID 5 macro 134 vm = vm_create_default(VCPU_ID, 0, (void *) l1_guest_code); in main() 135 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main() 139 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main() 142 volatile struct kvm_run *run = vcpu_state(vm, VCPU_ID); in main() 145 vcpu_run(vm, VCPU_ID); in main() 151 switch (get_ucall(vm, VCPU_ID, &uc)) { in main()
|
D | xss_msr_test.c | 15 #define VCPU_ID 1 macro 47 vm = vm_create_default(VCPU_ID, 0, 0); in main() 58 xss_val = vcpu_get_msr(vm, VCPU_ID, MSR_IA32_XSS); in main() 62 vcpu_set_msr(vm, VCPU_ID, MSR_IA32_XSS, xss_val); in main() 70 r = _vcpu_set_msr(vm, VCPU_ID, MSR_IA32_XSS, 1ull << i); in main()
|
D | hyperv_cpuid.c | 23 #define VCPU_ID 0 macro 105 ret = _vcpu_ioctl(vm, VCPU_ID, KVM_GET_SUPPORTED_HV_CPUID, &cpuid); in test_hv_cpuid_e2big() 127 vcpu_ioctl(vm, VCPU_ID, KVM_GET_SUPPORTED_HV_CPUID, cpuid); in kvm_get_supported_hv_cpuid() 150 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 168 vcpu_enable_evmcs(vm, VCPU_ID); in main()
|
D | vmx_set_nested_state_test.c | 26 #define VCPU_ID 5 macro 32 vcpu_nested_state_set(vm, VCPU_ID, state, false); in test_nested_state() 41 rv = vcpu_nested_state_set(vm, VCPU_ID, state, true); in test_nested_state_expect_errno() 127 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in test_vmx_nested_state() 143 vcpu_enable_evmcs(vm, VCPU_ID); in test_vmx_nested_state() 213 vcpu_nested_state_get(vm, VCPU_ID, state); in test_vmx_nested_state() 241 vm = vm_create_default(VCPU_ID, 0, 0); in main()
|
/external/linux-kselftest/tools/testing/selftests/kvm/s390x/ |
D | sync_regs_test.c | 24 #define VCPU_ID 5 macro 87 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 89 run = vcpu_state(vm, VCPU_ID); in main() 93 rv = _vcpu_run(vm, VCPU_ID); in main() 97 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main() 100 rv = _vcpu_run(vm, VCPU_ID); in main() 104 vcpu_state(vm, VCPU_ID)->kvm_valid_regs = 0; in main() 108 rv = _vcpu_run(vm, VCPU_ID); in main() 112 vcpu_state(vm, VCPU_ID)->kvm_dirty_regs = 0; in main() 115 rv = _vcpu_run(vm, VCPU_ID); in main() [all …]
|
D | memop.c | 16 #define VCPU_ID 1 macro 50 vm = vm_create_default(VCPU_ID, 0, guest_code); in main() 51 run = vcpu_state(vm, VCPU_ID); in main() 63 vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); in main() 66 vcpu_run(vm, VCPU_ID); in main() 81 vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); in main() 93 rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); in main() 103 rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); in main() 114 rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); in main() 124 rv = _vcpu_ioctl(vm, VCPU_ID, KVM_S390_MEM_OP, &ksmo); in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 22 #define VCPU_ID 1 macro 156 run = vcpu_state(vm, VCPU_ID); in vcpu_worker() 163 ret = _vcpu_run(vm, VCPU_ID); in vcpu_worker() 165 if (get_ucall(vm, VCPU_ID, NULL) == UCALL_SYNC) { in vcpu_worker() 282 vm = create_vm(mode, VCPU_ID, in run_test() 342 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
|