/Linux-v6.6/tools/testing/selftests/kvm/x86_64/ |
D | vmx_msrs_test.c | 24 vcpu_set_msr(vcpu, msr_index, val & ~BIT_ULL(bit)); in vmx_fixed1_msr_test() 25 vcpu_set_msr(vcpu, msr_index, val); in vmx_fixed1_msr_test() 38 vcpu_set_msr(vcpu, msr_index, val | BIT_ULL(bit)); in vmx_fixed0_msr_test() 39 vcpu_set_msr(vcpu, msr_index, val); in vmx_fixed0_msr_test() 51 vcpu_set_msr(vcpu, MSR_IA32_VMX_VMCS_ENUM, 0); in vmx_save_restore_msrs_test() 52 vcpu_set_msr(vcpu, MSR_IA32_VMX_VMCS_ENUM, -1ull); in vmx_save_restore_msrs_test() 79 vcpu_set_msr(vcpu, MSR_IA32_FEAT_CTL, val | msr_bit | FEAT_CTL_LOCKED); in __ia32_feature_control_msr_test() 80 vcpu_set_msr(vcpu, MSR_IA32_FEAT_CTL, (val & ~msr_bit) | FEAT_CTL_LOCKED); in __ia32_feature_control_msr_test() 81 vcpu_set_msr(vcpu, MSR_IA32_FEAT_CTL, val | msr_bit | FEAT_CTL_LOCKED); in __ia32_feature_control_msr_test() 82 vcpu_set_msr(vcpu, MSR_IA32_FEAT_CTL, (val & ~msr_bit) | FEAT_CTL_LOCKED); in __ia32_feature_control_msr_test() [all …]
|
D | vmx_pmu_caps_test.c | 91 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, host_cap.capabilities); in test_guest_wrmsr_perf_capabilities() 109 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, host_cap.capabilities); in test_guest_wrmsr_perf_capabilities() 133 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, 0); in test_basic_perf_capabilities() 134 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, host_cap.capabilities); in test_basic_perf_capabilities() 148 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, BIT_ULL(bit)); in test_fungible_perf_capabilities() 149 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, in test_fungible_perf_capabilities() 152 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, host_cap.capabilities); in test_fungible_perf_capabilities() 225 vcpu_set_msr(vcpu, MSR_IA32_PERF_CAPABILITIES, host_cap.capabilities); in test_lbr_perf_capabilities() 226 vcpu_set_msr(vcpu, MSR_LBR_TOS, 7); in test_lbr_perf_capabilities()
|
D | recalc_apic_map_test.c | 58 vcpu_set_msr(vcpus[i], MSR_IA32_APICBASE, LAPIC_X2APIC); in main() 64 vcpu_set_msr(vcpuN, MSR_IA32_APICBASE, LAPIC_X2APIC); in main() 65 vcpu_set_msr(vcpuN, MSR_IA32_APICBASE, LAPIC_DISABLED); in main()
|
D | platform_info_test.c | 72 vcpu_set_msr(vcpu, MSR_PLATFORM_INFO, in main() 76 vcpu_set_msr(vcpu, MSR_PLATFORM_INFO, msr_platform_info); in main()
|
D | tsc_msrs_test.c | 125 vcpu_set_msr(vcpu, MSR_IA32_TSC, HOST_ADJUST + val); in main() 131 vcpu_set_msr(vcpu, MSR_IA32_TSC_ADJUST, UNITY * 123456); in main() 136 vcpu_set_msr(vcpu, MSR_IA32_TSC_ADJUST, val); in main()
|
D | xss_msr_test.c | 34 vcpu_set_msr(vcpu, MSR_IA32_XSS, xss_val); in main()
|
D | tsc_scaling_sync.c | 57 vcpu_set_msr(vcpu, MSR_IA32_TSC, TEST_TSC_OFFSET); in run_vcpu()
|
D | monitor_mwait_test.c | 122 vcpu_set_msr(vcpu, MSR_IA32_MISC_ENABLE, in main()
|
D | hyperv_ipi.c | 262 vcpu_set_msr(vcpu[1], HV_X64_MSR_VP_INDEX, RECEIVER_VCPU_ID_1); in main() 268 vcpu_set_msr(vcpu[2], HV_X64_MSR_VP_INDEX, RECEIVER_VCPU_ID_2); in main()
|
D | smm_test.c | 153 vcpu_set_msr(vcpu, MSR_IA32_SMBASE, SMRAM_GPA); in main()
|
D | hyperv_svm_test.c | 172 vcpu_set_msr(vcpu, HV_X64_MSR_VP_INDEX, vcpu->id); in main()
|
D | xapic_state_test.c | 140 vcpu_set_msr(vcpu, MSR_IA32_APICBASE, apic_base); in __test_apic_id()
|
D | hyperv_evmcs.c | 258 vcpu_set_msr(vcpu, HV_X64_MSR_VP_INDEX, vcpu->id); in main()
|
D | hyperv_tlb_flush.c | 638 vcpu_set_msr(vcpu[1], HV_X64_MSR_VP_INDEX, WORKER_VCPU_ID_1); in main() 643 vcpu_set_msr(vcpu[2], HV_X64_MSR_VP_INDEX, WORKER_VCPU_ID_2); in main()
|
/Linux-v6.6/tools/testing/selftests/kvm/ |
D | steal_time.c | 78 vcpu_set_msr(vcpu, MSR_KVM_STEAL_TIME, (ulong)st_gva[i] | KVM_MSR_ENABLED); in steal_time_init()
|
/Linux-v6.6/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 1048 #define vcpu_set_msr(vcpu, msr, val) \ macro
|