Home
last modified time | relevance | path

Searched refs:guest_cpuid_has (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/arch/x86/kvm/
H A Dcpuid.h88 static __always_inline bool guest_cpuid_has(struct kvm_vcpu *vcpu, in guest_cpuid_has() function
178 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_spec_ctrl_msr()
179 guest_cpuid_has(vcpu, X86_FEATURE_AMD_STIBP) || in guest_has_spec_ctrl_msr()
180 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBRS) || in guest_has_spec_ctrl_msr()
181 guest_cpuid_has(vcpu, X86_FEATURE_AMD_SSBD)); in guest_has_spec_ctrl_msr()
186 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_pred_cmd_msr()
187 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBPB)); in guest_has_pred_cmd_msr()
278 if (kvm_cpu_cap_has(x86_feature) && guest_cpuid_has(vcpu, x86_feature)) in kvm_governed_feature_check_and_set()
H A Dsmm.c293 if (guest_cpuid_has(vcpu, X86_FEATURE_LM)) in enter_smm()
364 if (guest_cpuid_has(vcpu, X86_FEATURE_LM)) in enter_smm()
597 if (guest_cpuid_has(vcpu, X86_FEATURE_LM)) { in emulator_leave_smm()
620 if (guest_cpuid_has(vcpu, X86_FEATURE_LM)) { in emulator_leave_smm()
643 if (guest_cpuid_has(vcpu, X86_FEATURE_LM)) in emulator_leave_smm()
H A Dx86.c1365 if (!guest_cpuid_has(vcpu, X86_FEATURE_RTM)) in kvm_dr6_fixed()
1737 !guest_cpuid_has(vcpu, X86_FEATURE_LM)) in __kvm_valid_efer()
1879 !guest_cpuid_has(vcpu, X86_FEATURE_RDPID)) in __kvm_set_msr()
2128 !guest_cpuid_has(vcpu, X86_FEATURE_MWAIT)) in kvm_emulate_monitor_mwait()
3940 if (!guest_cpuid_has(vcpu, X86_FEATURE_OSVW)) in kvm_set_msr_common()
3945 if (!guest_cpuid_has(vcpu, X86_FEATURE_OSVW)) in kvm_set_msr_common()
3966 !guest_cpuid_has(vcpu, X86_FEATURE_XFD)) in kvm_set_msr_common()
3976 !guest_cpuid_has(vcpu, X86_FEATURE_XFD)) in kvm_set_msr_common()
4106 !guest_cpuid_has(vcpu, X86_FEATURE_PDCM)) in kvm_get_msr_common()
4329 !guest_cpuid_has(vcpu, X86_FEATURE_XFD)) in kvm_get_msr_common()
[all …]
H A Dmtrr.c131 if (guest_cpuid_has(vcpu, X86_FEATURE_MTRR)) in mtrr_disabled_type()
H A Dcpuid.c346 guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES); in kvm_vcpu_after_set_cpuid()
371 __cr4_reserved_bits(guest_cpuid_has, vcpu); in kvm_vcpu_after_set_cpuid()
H A Dlapic.c590 if (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) && in kvm_apic_set_version()
/openbmc/linux/arch/x86/kvm/vmx/
H A Dsgx.c125 guest_cpuid_has(vcpu, X86_FEATURE_SGX2)) { in sgx_inject_fault()
368 return guest_cpuid_has(vcpu, X86_FEATURE_SGX2); in encls_leaf_enabled_in_guest()
384 if (!enable_sgx || !guest_cpuid_has(vcpu, X86_FEATURE_SGX) || in handle_encls()
385 !guest_cpuid_has(vcpu, X86_FEATURE_SGX1)) { in handle_encls()
482 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX) && in vmx_write_encls_bitmap()
484 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX1)) { in vmx_write_encls_bitmap()
490 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX2)) in vmx_write_encls_bitmap()
H A Dvmx.c2042 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_get_msr()
2058 !guest_cpuid_has(vcpu, X86_FEATURE_SGX_LC)) in vmx_get_msr()
2145 if (!guest_cpuid_has(vcpu, X86_FEATURE_LM)) in nested_vmx_truncate_sysenter_addr()
2260 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_set_msr()
2448 if (!guest_cpuid_has(vcpu, X86_FEATURE_DS)) in vmx_set_msr()
4658 guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP) || in vmx_secondary_exec_control()
4659 guest_cpuid_has(vcpu, X86_FEATURE_RDPID); in vmx_secondary_exec_control()
7781 guest_cpuid_has(vcpu, X86_FEATURE_XSAVE)) in vmx_vcpu_after_set_cpuid()
7805 guest_cpuid_has(vcpu, X86_FEATURE_INTEL_PT)) in vmx_vcpu_after_set_cpuid()
7832 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX)) in vmx_vcpu_after_set_cpuid()
[all …]
H A Dpmu_intel.c163 if (!guest_cpuid_has(vcpu, X86_FEATURE_PDCM)) in vcpu_get_perf_capabilities()
213 ret = guest_cpuid_has(vcpu, X86_FEATURE_DS); in intel_is_valid_msr()
H A Dnested.c4850 if (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL)) in nested_vmx_vmexit()
6128 if (!guest_cpuid_has(vcpu, X86_FEATURE_SGX) || in nested_vmx_exit_handled_encls()
/openbmc/linux/arch/x86/kvm/svm/
H A Dpmu.c49 if (!guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) in get_gp_pmc_amd()
116 return guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE); in amd_is_valid_msr()
187 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFMON_V2)) { in amd_pmu_refresh()
197 } else if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) { in amd_pmu_refresh()
H A Dsvm.c1205 !guest_cpuid_has(&svm->vcpu, X86_FEATURE_INVPCID)) in svm_recalc_instruction_intercepts()
1212 if (guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in svm_recalc_instruction_intercepts()
2934 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_get_msr()
3081 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_set_msr()
3259 if (!guest_cpuid_has(vcpu, X86_FEATURE_INVPCID)) { in invpcid_interception()
4363 guest_cpuid_has(vcpu, X86_FEATURE_XSAVE)) in svm_vcpu_after_set_cpuid()
4391 !!guest_cpuid_has(vcpu, X86_FEATURE_FLUSH_L1D)); in svm_vcpu_after_set_cpuid()
4648 if (!guest_cpuid_has(vcpu, X86_FEATURE_LM)) in svm_enter_smm()
4695 if (!guest_cpuid_has(vcpu, X86_FEATURE_LM)) in svm_leave_smm()
4702 if (!guest_cpuid_has(vcpu, X86_FEATURE_SVM)) in svm_leave_smm()
H A Dsev.c3000 bool v_tsc_aux = guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP) || in sev_es_vcpu_after_set_cpuid()
3001 guest_cpuid_has(vcpu, X86_FEATURE_RDPID); in sev_es_vcpu_after_set_cpuid()
3020 guest_cpuid_has(vcpu, X86_FEATURE_XSAVES)) in sev_es_vcpu_after_set_cpuid()