| /Linux-v5.15/tools/testing/selftests/kvm/x86_64/ |
| D | state_test.c | 41 GUEST_ASSERT(svm->vmcb_gpa); in svm_l1_guest_code() 48 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in svm_l1_guest_code() 52 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in svm_l1_guest_code() 64 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0ffee); in vmx_l2_guest_code() 66 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0ffee); in vmx_l2_guest_code() 67 GUEST_ASSERT(!vmwrite(GUEST_RIP, 0xc0fffee)); in vmx_l2_guest_code() 69 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0fffee); in vmx_l2_guest_code() 70 GUEST_ASSERT(!vmwrite(GUEST_RIP, 0xc0ffffee)); in vmx_l2_guest_code() 81 GUEST_ASSERT(vmx_pages->vmcs_gpa); in vmx_l1_guest_code() 82 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in vmx_l1_guest_code() [all …]
|
| D | evmcs_test.c | 60 GUEST_ASSERT(vmx_pages->vmcs_gpa); in guest_code() 61 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in guest_code() 63 GUEST_ASSERT(load_vmcs(vmx_pages)); in guest_code() 64 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 67 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 73 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 75 GUEST_ASSERT(vmlaunch()); in guest_code() 81 GUEST_ASSERT(!vmlaunch()); in guest_code() 82 GUEST_ASSERT(vmptrstz() == vmx_pages->enlightened_vmcs_gpa); in guest_code() 89 GUEST_ASSERT(!vmresume()); in guest_code() [all …]
|
| D | hyperv_clock.c | 57 GUEST_ASSERT(tsc_freq > 0); in check_tsc_msr_rdtsc() 66 GUEST_ASSERT(r2 > r1 && t2 > t1); in check_tsc_msr_rdtsc() 74 GUEST_ASSERT(delta_ns * 100 < (t2 - t1) * 100); in check_tsc_msr_rdtsc() 91 GUEST_ASSERT(r1 >= t1 && r1 - t1 < 100000); in check_tsc_msr_tsc_page() 96 GUEST_ASSERT(r2 >= t1 && r2 - t2 < 100000); in check_tsc_msr_tsc_page() 114 GUEST_ASSERT(tsc_page->tsc_sequence == 0); in guest_main() 115 GUEST_ASSERT(tsc_page->tsc_scale == 0); in guest_main() 116 GUEST_ASSERT(tsc_page->tsc_offset == 0); in guest_main() 122 GUEST_ASSERT(tsc_page->tsc_sequence != 0); in guest_main() 135 GUEST_ASSERT(get_tscpage_ts(tsc_page) < 100000); in guest_main() [all …]
|
| D | userspace_msr_exit_test.c | 227 GUEST_ASSERT(data == 0); in guest_code_filter_allow() 228 GUEST_ASSERT(guest_exception_count == 0); in guest_code_filter_allow() 231 GUEST_ASSERT(guest_exception_count == 0); in guest_code_filter_allow() 234 GUEST_ASSERT(guest_exception_count == 1); in guest_code_filter_allow() 243 GUEST_ASSERT(guest_exception_count == 1); in guest_code_filter_allow() 246 GUEST_ASSERT(guest_exception_count == 1); in guest_code_filter_allow() 249 GUEST_ASSERT(guest_exception_count == 0); in guest_code_filter_allow() 258 GUEST_ASSERT(guest_exception_count == 0); in guest_code_filter_allow() 261 GUEST_ASSERT(data == 2); in guest_code_filter_allow() 262 GUEST_ASSERT(guest_exception_count == 0); in guest_code_filter_allow() [all …]
|
| D | vmx_preemption_timer_test.c | 77 GUEST_ASSERT(vmx_pages->vmcs_gpa); in l1_guest_code() 78 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 79 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 80 GUEST_ASSERT(vmptrstz() == vmx_pages->vmcs_gpa); in l1_guest_code() 98 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 99 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code() 105 GUEST_ASSERT(!vmwrite(PIN_BASED_VM_EXEC_CONTROL, in l1_guest_code() 109 GUEST_ASSERT(!vmwrite(VMX_PREEMPTION_TIMER_VALUE, in l1_guest_code() 118 GUEST_ASSERT(!vmresume()); in l1_guest_code() 126 GUEST_ASSERT(l2_save_restore_done); in l1_guest_code() [all …]
|
| D | vmx_tsc_adjust_test.c | 69 GUEST_ASSERT(adjust <= max); in check_ia32_tsc_adjust() 90 GUEST_ASSERT(rdtsc() < TSC_ADJUST_VALUE); in l1_guest_code() 94 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 95 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 108 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 109 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == in l1_guest_code() 114 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 115 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
|
| D | xen_shinfo_test.c | 70 GUEST_ASSERT(rs->time[RUNSTATE_runnable] != 0); in guest_code() 71 GUEST_ASSERT(rs->state == 0); in guest_code() 74 GUEST_ASSERT(rs->time[RUNSTATE_blocked] != 0); in guest_code() 75 GUEST_ASSERT(rs->state == 0); in guest_code() 78 GUEST_ASSERT(rs->time[RUNSTATE_offline] != 0); in guest_code() 79 GUEST_ASSERT(rs->state == 0); in guest_code() 83 GUEST_ASSERT(rs->time[RUNSTATE_blocked] == 0x5a); in guest_code() 84 GUEST_ASSERT(rs->time[RUNSTATE_offline] == 0x6b6b); in guest_code() 88 GUEST_ASSERT(rs->state_entry_time >= 0x8000); in guest_code() 89 GUEST_ASSERT(rs->time[RUNSTATE_runnable] == 0); in guest_code() [all …]
|
| D | vmx_apic_access_test.c | 48 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 49 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 64 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 65 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code() 71 GUEST_ASSERT(!vmresume()); in l1_guest_code() 72 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
|
| D | vmx_close_while_nested_test.c | 42 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 43 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 49 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 50 GUEST_ASSERT(0); in l1_guest_code()
|
| D | vmx_dirty_log_test.c | 55 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code() 56 GUEST_ASSERT(prepare_for_vmx_operation(vmx)); in l1_guest_code() 57 GUEST_ASSERT(load_vmcs(vmx)); in l1_guest_code() 63 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 65 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
|
| D | svm_int_ctl_test.c | 54 GUEST_ASSERT(vintr_irq_called); in l2_guest_code() 55 GUEST_ASSERT(intr_irq_called); in l2_guest_code() 85 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in l1_guest_code()
|
| D | kvm_pv_test.c | 54 GUEST_ASSERT(r || w); in guest_gp_handler() 94 GUEST_ASSERT(READ_ONCE(nr_gp) == 1); in test_msr() 98 GUEST_ASSERT(READ_ONCE(nr_gp) == 1); in test_msr() 127 GUEST_ASSERT(r == -KVM_ENOSYS); in test_hcall()
|
| D | vmx_nested_tsc_scaling_test.c | 93 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in l1_guest_code() 94 GUEST_ASSERT(load_vmcs(vmx_pages)); in l1_guest_code() 113 GUEST_ASSERT(!vmlaunch()); in l1_guest_code() 114 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
|
| D | xen_vmcall_test.c | 49 GUEST_ASSERT(rax == RETVALUE); in guest_code() 71 GUEST_ASSERT(rax == RETVALUE); in guest_code() 81 GUEST_ASSERT(rax == HV_STATUS_INVALID_ALIGNMENT); in guest_code()
|
| D | cr4_cpuid_sync_test.c | 53 GUEST_ASSERT(cr4_cpuid_is_sync()); in guest_code() 59 GUEST_ASSERT(cr4_cpuid_is_sync()); in guest_code()
|
| D | mmu_role_test.c | 15 GUEST_ASSERT(0); in guest_code() 21 GUEST_ASSERT(regs->error_code == 0x9); in guest_pf_handler()
|
| D | set_boot_cpu_id.c | 27 GUEST_ASSERT(get_bsp_flag() != 0); in guest_bsp_vcpu() 36 GUEST_ASSERT(get_bsp_flag() == 0); in guest_not_bsp_vcpu()
|
| D | hyperv_features.c | 74 GUEST_ASSERT(r || w); in guest_gp_handler() 115 GUEST_ASSERT(READ_ONCE(nr_gp) == 0); in guest_msr() 117 GUEST_ASSERT(READ_ONCE(nr_gp) == 1); in guest_msr() 144 GUEST_ASSERT(nr_ud == 1); in guest_hcall() 146 GUEST_ASSERT(res == hcall->expect); in guest_hcall()
|
| D | smm_test.c | 94 GUEST_ASSERT(prepare_for_vmx_operation(vmx_pages)); in guest_code() 95 GUEST_ASSERT(load_vmcs(vmx_pages)); in guest_code()
|
| D | get_cpuid_test.c | 41 GUEST_ASSERT(eax == guest_cpuid->entries[i].eax && in test_guest_cpuids() 55 GUEST_ASSERT(eax == 0x40000001); in test_cpuid_40000000()
|
| D | svm_vmcall_test.c | 36 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in l1_guest_code()
|
| D | xapic_ipi_test.c | 92 GUEST_ASSERT(base == APIC_DEFAULT_GPA); in verify_apic_base_addr() 188 GUEST_ASSERT((ipis_rcvd != last_ipis_rcvd_count) && in sender_guest_code()
|
| /Linux-v5.15/tools/testing/selftests/kvm/ |
| D | steal_time.c | 33 GUEST_ASSERT(!(READ_ONCE(st->version) & 1)); in check_status() 34 GUEST_ASSERT(READ_ONCE(st->flags) == 0); in check_status() 35 GUEST_ASSERT(READ_ONCE(st->preempted) == 0); in check_status() 43 GUEST_ASSERT(rdmsr(MSR_KVM_STEAL_TIME) == ((uint64_t)st_gva[cpu] | KVM_MSR_ENABLED)); in guest_code() 55 GUEST_ASSERT(version < READ_ONCE(st->version)); in guest_code() 136 GUEST_ASSERT(READ_ONCE(st->rev) == 0); in check_status() 137 GUEST_ASSERT(READ_ONCE(st->attr) == 0); in check_status() 146 GUEST_ASSERT(status == 0); in guest_code() 148 GUEST_ASSERT(status == 0); in guest_code() 150 GUEST_ASSERT(status == 0); in guest_code() [all …]
|
| D | kvm_page_table_test.c | 104 GUEST_ASSERT(vcpu_args->vcpu_id == vcpu_id); in guest_code() 187 GUEST_ASSERT(0); in guest_code()
|
| /Linux-v5.15/tools/testing/selftests/kvm/aarch64/ |
| D | psci_cpu_on_test.c | 59 GUEST_ASSERT(!psci_cpu_on(target_cpu, CPU_ON_ENTRY_ADDR, CPU_ON_CONTEXT_ID)); in guest_main() 65 GUEST_ASSERT((target_state == PSCI_0_2_AFFINITY_LEVEL_ON) || in guest_main()
|