Searched refs:guest_cpuid_has (Results 1 – 8 of 8) sorted by relevance
/arch/x86/kvm/ |
D | cpuid.h | 93 static __always_inline bool guest_cpuid_has(struct kvm_vcpu *vcpu, unsigned x86_feature) in guest_cpuid_has() function 160 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_spec_ctrl_msr() 161 guest_cpuid_has(vcpu, X86_FEATURE_AMD_STIBP) || in guest_has_spec_ctrl_msr() 162 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBRS) || in guest_has_spec_ctrl_msr() 163 guest_cpuid_has(vcpu, X86_FEATURE_AMD_SSBD)); in guest_has_spec_ctrl_msr() 168 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_pred_cmd_msr() 169 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBPB)); in guest_has_pred_cmd_msr()
|
D | pmu_amd.c | 67 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) { in get_msr_base() 187 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) { in amd_pmc_idx_to_pmc() 283 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) in amd_pmu_refresh()
|
D | x86.c | 351 (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) ? 0 : X2APIC_ENABLE); in kvm_set_apic_base() 948 if (!guest_cpuid_has(vcpu, X86_FEATURE_XSAVE) && (cr4 & X86_CR4_OSXSAVE)) in kvm_valid_cr4() 951 if (!guest_cpuid_has(vcpu, X86_FEATURE_SMEP) && (cr4 & X86_CR4_SMEP)) in kvm_valid_cr4() 954 if (!guest_cpuid_has(vcpu, X86_FEATURE_SMAP) && (cr4 & X86_CR4_SMAP)) in kvm_valid_cr4() 957 if (!guest_cpuid_has(vcpu, X86_FEATURE_FSGSBASE) && (cr4 & X86_CR4_FSGSBASE)) in kvm_valid_cr4() 960 if (!guest_cpuid_has(vcpu, X86_FEATURE_PKU) && (cr4 & X86_CR4_PKE)) in kvm_valid_cr4() 963 if (!guest_cpuid_has(vcpu, X86_FEATURE_LA57) && (cr4 & X86_CR4_LA57)) in kvm_valid_cr4() 966 if (!guest_cpuid_has(vcpu, X86_FEATURE_UMIP) && (cr4 & X86_CR4_UMIP)) in kvm_valid_cr4() 994 if (!guest_cpuid_has(vcpu, X86_FEATURE_PCID)) in kvm_set_cr4() 1107 if (!guest_cpuid_has(vcpu, X86_FEATURE_RTM)) in kvm_dr6_fixed() [all …]
|
D | mtrr.c | 123 if (guest_cpuid_has(vcpu, X86_FEATURE_MTRR)) in mtrr_disabled_type()
|
D | svm.c | 4265 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_get_msr() 4382 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_set_msr() 5965 svm->nrips_enabled = !!guest_cpuid_has(&svm->vcpu, X86_FEATURE_NRIPS); in svm_cpuid_update()
|
D | mmu.c | 4613 guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES), in reset_rsvds_bits_mask() 4690 guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES), in reset_shadow_zero_bits_mask()
|
/arch/x86/kvm/vmx/ |
D | vmx.c | 1770 if (index >= 0 && guest_cpuid_has(&vmx->vcpu, X86_FEATURE_RDTSCP)) in setup_msrs() 1821 return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX); in nested_vmx_allowed() 1896 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_get_msr() 1918 !(guest_cpuid_has(vcpu, X86_FEATURE_XSAVE) && in vmx_get_msr() 1919 guest_cpuid_has(vcpu, X86_FEATURE_XSAVES)))) in vmx_get_msr() 1971 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in vmx_get_msr() 2043 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_set_msr() 2160 !(guest_cpuid_has(vcpu, X86_FEATURE_XSAVE) && in vmx_set_msr() 2161 guest_cpuid_has(vcpu, X86_FEATURE_XSAVES)))) in vmx_set_msr() 2237 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in vmx_set_msr() [all …]
|
D | nested.c | 4135 if (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL)) in nested_vmx_vmexit()
|