Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/x86/kvm/
Dcpuid.h202 static __always_inline bool guest_cpuid_has(struct kvm_vcpu *vcpu, in guest_cpuid_has() function
269 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_spec_ctrl_msr()
270 guest_cpuid_has(vcpu, X86_FEATURE_AMD_STIBP) || in guest_has_spec_ctrl_msr()
271 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBRS) || in guest_has_spec_ctrl_msr()
272 guest_cpuid_has(vcpu, X86_FEATURE_AMD_SSBD)); in guest_has_spec_ctrl_msr()
277 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_pred_cmd_msr()
278 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBPB)); in guest_has_pred_cmd_msr()
Dx86.c415 (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) ? 0 : X2APIC_ENABLE); in kvm_set_apic_base()
1017 if (!guest_cpuid_has(vcpu, X86_FEATURE_PCID)) in kvm_set_cr4()
1125 if (!guest_cpuid_has(vcpu, X86_FEATURE_RTM)) in kvm_dr6_fixed()
1466 if (efer & EFER_FFXSR && !guest_cpuid_has(vcpu, X86_FEATURE_FXSR_OPT)) in __kvm_valid_efer()
1469 if (efer & EFER_SVME && !guest_cpuid_has(vcpu, X86_FEATURE_SVM)) in __kvm_valid_efer()
1473 !guest_cpuid_has(vcpu, X86_FEATURE_LM)) in __kvm_valid_efer()
1476 if (efer & EFER_NX && !guest_cpuid_has(vcpu, X86_FEATURE_NX)) in __kvm_valid_efer()
3127 if (guest_cpuid_has(vcpu, X86_FEATURE_TSC_ADJUST)) { in kvm_set_msr_common()
3142 if (!guest_cpuid_has(vcpu, X86_FEATURE_XMM3)) in kvm_set_msr_common()
3169 !guest_cpuid_has(vcpu, X86_FEATURE_XSAVES)) in kvm_set_msr_common()
[all …]
Dmtrr.c123 if (guest_cpuid_has(vcpu, X86_FEATURE_MTRR)) in mtrr_disabled_type()
Dcpuid.c179 __cr4_reserved_bits(guest_cpuid_has, vcpu); in kvm_vcpu_after_set_cpuid()
Dlapic.c375 if (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) && in kvm_apic_set_version()
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Dpmu.c51 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) { in get_msr_base()
165 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) { in amd_pmc_idx_to_pmc()
271 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) in amd_pmu_refresh()
Dsvm.c1100 !guest_cpuid_has(&svm->vcpu, X86_FEATURE_INVPCID)) in svm_check_invpcid()
2525 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in svm_get_msr()
2564 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_get_msr()
2681 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_set_msr()
2722 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in svm_set_msr()
2858 if (!guest_cpuid_has(vcpu, X86_FEATURE_INVPCID)) { in invpcid_interception()
3766 vcpu->arch.xsaves_enabled = guest_cpuid_has(vcpu, X86_FEATURE_XSAVE) && in svm_vcpu_after_set_cpuid()
3772 guest_cpuid_has(&svm->vcpu, X86_FEATURE_NRIPS); in svm_vcpu_after_set_cpuid()
3791 if (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC)) in svm_vcpu_after_set_cpuid()
3799 if (nested && guest_cpuid_has(vcpu, X86_FEATURE_SVM)) in svm_vcpu_after_set_cpuid()
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
Dpmu_intel.c157 if (!guest_cpuid_has(vcpu, X86_FEATURE_PDCM)) in fw_writes_is_enabled()
343 if (guest_cpuid_has(vcpu, X86_FEATURE_PDCM)) in intel_pmu_refresh()
Dvmx.c1806 if (guest_cpuid_has(&vmx->vcpu, X86_FEATURE_RDTSCP)) in setup_msrs()
1845 return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX); in nested_vmx_allowed()
1926 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_get_msr()
2006 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in vmx_get_msr()
2026 if (!guest_cpuid_has(vcpu, X86_FEATURE_LM)) in nested_vmx_truncate_sysenter_addr()
2093 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_set_msr()
2275 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in vmx_set_msr()
4278 __enabled = guest_cpuid_has(&(vmx)->vcpu, \
4335 guest_cpuid_has(vcpu, X86_FEATURE_XSAVE) && in vmx_compute_secondary_exec_control()
4336 guest_cpuid_has(vcpu, X86_FEATURE_XSAVES); in vmx_compute_secondary_exec_control()
[all …]
Dnested.c4514 if (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL)) in nested_vmx_vmexit()
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dmmu.c4075 guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES), in reset_rsvds_bits_mask()
4153 guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES), in reset_shadow_zero_bits_mask()