/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | evmcs_test.c | 71 void guest_code(struct vmx_pages *vmx_pages) in guest_code() argument 81 enable_vp_assist(vmx_pages->vp_assist_gpa, vmx_pages->vp_assist); in guest_code() 83 GUEST_ASSERT(vmx_pages->vmcs_gpa); in guest_code() 84 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in guest_code() 86 GUEST_ASSERT(load_vmcs(vmx_pages)); in guest_code() 87 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 90 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 92 prepare_vmcs(vmx_pages, l2_guest_code, in guest_code() 96 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 106 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() [all …]
|
D | state_test.c | 76 static void vmx_l1_guest_code(struct vmx_pages *vmx_pages) in vmx_l1_guest_code() argument 80 GUEST_ASSERT(vmx_pages->vmcs_gpa); in vmx_l1_guest_code() 81 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in vmx_l1_guest_code() 83 GUEST_ASSERT(load_vmcs(vmx_pages)); in vmx_l1_guest_code() 84 GUEST_ASSERT(vmptrstz() == vmx_pages->vmcs_gpa); in vmx_l1_guest_code() 87 GUEST_ASSERT(vmptrstz() == vmx_pages->vmcs_gpa); in vmx_l1_guest_code() 89 prepare_vmcs(vmx_pages, vmx_l2_guest_code, in vmx_l1_guest_code() 93 GUEST_ASSERT(vmptrstz() == vmx_pages->vmcs_gpa); in vmx_l1_guest_code() 95 GUEST_ASSERT(vmptrstz() == vmx_pages->vmcs_gpa); in vmx_l1_guest_code() 113 vmwrite(VMCS_LINK_POINTER, vmx_pages->shadow_vmcs_gpa); in vmx_l1_guest_code() [all …]
|
D | vmx_preemption_timer_test.c | 68 void l1_guest_code(struct vmx_pages *vmx_pages) in l1_guest_code() argument 76 GUEST_ASSERT(vmx_pages->vmcs_gpa); in l1_guest_code() 77 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 78 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 79 GUEST_ASSERT(vmptrstz() == vmx_pages->vmcs_gpa); in l1_guest_code() 81 prepare_vmcs(vmx_pages, l2_guest_code, in l1_guest_code() 146 void guest_code(struct vmx_pages *vmx_pages) in guest_code() argument 148 if (vmx_pages) in guest_code() 149 l1_guest_code(vmx_pages); in guest_code()
|
D | vmx_apic_access_test.c | 37 static void l1_guest_code(struct vmx_pages *vmx_pages, unsigned long high_gpa) in l1_guest_code() argument 43 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 44 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 47 prepare_vmcs(vmx_pages, l2_guest_code, in l1_guest_code() 55 vmwrite(APIC_ACCESS_ADDR, vmx_pages->apic_access_gpa); in l1_guest_code() 77 struct vmx_pages *vmx; in main()
|
D | vmx_close_while_nested_test.c | 32 static void l1_guest_code(struct vmx_pages *vmx_pages) in l1_guest_code() argument 37 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 38 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 41 prepare_vmcs(vmx_pages, l2_guest_code, in l1_guest_code()
|
D | vmx_invalid_nested_guest_state.c | 26 static void l1_guest_code(struct vmx_pages *vmx_pages) in l1_guest_code() argument 31 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 32 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 35 prepare_vmcs(vmx_pages, l2_guest_code, in l1_guest_code()
|
D | vmx_tsc_adjust_test.c | 80 static void l1_guest_code(struct vmx_pages *vmx_pages) in l1_guest_code() argument 91 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 92 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 95 prepare_vmcs(vmx_pages, l2_guest_code, in l1_guest_code()
|
D | smm_test.c | 73 struct vmx_pages *vmx_pages = arg; in guest_code() local 90 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in guest_code() 91 GUEST_ASSERT(load_vmcs(vmx_pages)); in guest_code() 92 prepare_vmcs(vmx_pages, l2_guest_code, in guest_code()
|
D | vmx_nested_tsc_scaling_test.c | 82 static void l1_guest_code(struct vmx_pages *vmx_pages) in l1_guest_code() argument 90 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 91 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 94 prepare_vmcs(vmx_pages, l2_guest_code, &l2_guest_stack[L2_GUEST_STACK_SIZE]); in l1_guest_code()
|
D | vmx_dirty_log_test.c | 48 void l1_guest_code(struct vmx_pages *vmx) in l1_guest_code() 70 struct vmx_pages *vmx; in main()
|
D | triple_fault_event_test.c | 27 void l1_guest_code_vmx(struct vmx_pages *vmx) in l1_guest_code_vmx()
|
D | nested_exceptions_test.c | 129 static void l1_vmx_code(struct vmx_pages *vmx) in l1_vmx_code()
|
/linux-6.1.9/tools/testing/selftests/kvm/include/x86_64/ |
D | vmx.h | 495 struct vmx_pages { struct 560 struct vmx_pages *vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva); 561 bool prepare_for_vmx_operation(struct vmx_pages *vmx); 562 void prepare_vmcs(struct vmx_pages *vmx, void *guest_rip, void *guest_rsp); 563 bool load_vmcs(struct vmx_pages *vmx); 567 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, 569 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, 571 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm, 573 void nested_identity_map_1g(struct vmx_pages *vmx, struct kvm_vm *vm, 576 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm, [all …]
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/ |
D | vmx.c | 74 struct vmx_pages * 78 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx() 128 bool prepare_for_vmx_operation(struct vmx_pages *vmx) in prepare_for_vmx_operation() 172 bool load_vmcs(struct vmx_pages *vmx) in load_vmcs() 211 static inline void init_vmcs_control_fields(struct vmx_pages *vmx) in init_vmcs_control_fields() 380 void prepare_vmcs(struct vmx_pages *vmx, void *guest_rip, void *guest_rsp) in prepare_vmcs() 419 void __nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in __nested_pg_map() 470 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_pg_map() 493 void __nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in __nested_map() 510 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm, in nested_map() [all …]
|
D | perf_test_util.c | 32 static void perf_test_l1_guest_code(struct vmx_pages *vmx, uint64_t vcpu_id) in perf_test_l1_guest_code() 62 void perf_test_setup_ept(struct vmx_pages *vmx, struct kvm_vm *vm) in perf_test_setup_ept() 82 struct vmx_pages *vmx, *vmx0 = NULL; in perf_test_setup_nested()
|