Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/kvm/
Dcpuid.h88 static __always_inline bool guest_cpuid_has(struct kvm_vcpu *vcpu, in guest_cpuid_has() function
168 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_spec_ctrl_msr()
169 guest_cpuid_has(vcpu, X86_FEATURE_AMD_STIBP) || in guest_has_spec_ctrl_msr()
170 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBRS) || in guest_has_spec_ctrl_msr()
171 guest_cpuid_has(vcpu, X86_FEATURE_AMD_SSBD)); in guest_has_spec_ctrl_msr()
176 return (guest_cpuid_has(vcpu, X86_FEATURE_SPEC_CTRL) || in guest_has_pred_cmd_msr()
177 guest_cpuid_has(vcpu, X86_FEATURE_AMD_IBPB)); in guest_has_pred_cmd_msr()
Dx86.c480 (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) ? 0 : X2APIC_ENABLE); in kvm_set_apic_base()
1181 if (!guest_cpuid_has(vcpu, X86_FEATURE_PCID)) in kvm_set_cr4()
1341 if (!guest_cpuid_has(vcpu, X86_FEATURE_RTM)) in kvm_dr6_fixed()
1344 if (!guest_cpuid_has(vcpu, X86_FEATURE_BUS_LOCK_DETECT)) in kvm_dr6_fixed()
1691 if (efer & EFER_FFXSR && !guest_cpuid_has(vcpu, X86_FEATURE_FXSR_OPT)) in __kvm_valid_efer()
1694 if (efer & EFER_SVME && !guest_cpuid_has(vcpu, X86_FEATURE_SVM)) in __kvm_valid_efer()
1698 !guest_cpuid_has(vcpu, X86_FEATURE_LM)) in __kvm_valid_efer()
1701 if (efer & EFER_NX && !guest_cpuid_has(vcpu, X86_FEATURE_NX)) in __kvm_valid_efer()
1839 !guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP) && in __kvm_set_msr()
1840 !guest_cpuid_has(vcpu, X86_FEATURE_RDPID)) in __kvm_set_msr()
[all …]
Dmtrr.c119 if (guest_cpuid_has(vcpu, X86_FEATURE_MTRR)) in mtrr_disabled_type()
Dcpuid.c356 __cr4_reserved_bits(guest_cpuid_has, vcpu); in kvm_vcpu_after_set_cpuid()
Dlapic.c431 if (guest_cpuid_has(vcpu, X86_FEATURE_X2APIC) && in kvm_apic_set_version()
/linux-6.1.9/arch/x86/kvm/vmx/
Dsgx.c124 guest_cpuid_has(vcpu, X86_FEATURE_SGX2)) { in sgx_inject_fault()
352 if (!enable_sgx || !guest_cpuid_has(vcpu, X86_FEATURE_SGX)) in encls_leaf_enabled_in_guest()
356 return guest_cpuid_has(vcpu, X86_FEATURE_SGX1); in encls_leaf_enabled_in_guest()
359 return guest_cpuid_has(vcpu, X86_FEATURE_SGX2); in encls_leaf_enabled_in_guest()
471 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX) && in vmx_write_encls_bitmap()
473 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX1)) { in vmx_write_encls_bitmap()
479 if (guest_cpuid_has(vcpu, X86_FEATURE_SGX2)) in vmx_write_encls_bitmap()
Dpmu_intel.c151 if (!guest_cpuid_has(vcpu, X86_FEATURE_PDCM)) in vcpu_get_perf_capabilities()
205 ret = guest_cpuid_has(vcpu, X86_FEATURE_DS); in intel_is_valid_msr()
441 if (msr_info->host_initiated && data && !guest_cpuid_has(vcpu, X86_FEATURE_DS)) in intel_pmu_set_msr()
Dvmx.c1777 guest_cpuid_has(&vmx->vcpu, X86_FEATURE_RDTSCP) || in vmx_setup_uret_msrs()
1778 guest_cpuid_has(&vmx->vcpu, X86_FEATURE_RDPID)); in vmx_setup_uret_msrs()
1834 return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX); in nested_vmx_allowed()
1915 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_get_msr()
1931 !guest_cpuid_has(vcpu, X86_FEATURE_SGX_LC)) in vmx_get_msr()
2018 if (!guest_cpuid_has(vcpu, X86_FEATURE_LM)) in nested_vmx_truncate_sysenter_addr()
2029 (host_initiated || guest_cpuid_has(vcpu, X86_FEATURE_BUS_LOCK_DETECT))) in vmx_get_supported_debugctl()
2135 !guest_cpuid_has(vcpu, X86_FEATURE_MPX))) in vmx_set_msr()
2268 (!guest_cpuid_has(vcpu, X86_FEATURE_SGX_LC) || in vmx_set_msr()
2354 if (!guest_cpuid_has(vcpu, X86_FEATURE_DS)) in vmx_set_msr()
[all …]
Dnested.c6038 if (!guest_cpuid_has(vcpu, X86_FEATURE_SGX) || in nested_vmx_exit_handled_encls()
/linux-6.1.9/arch/x86/kvm/svm/
Dpmu.c47 if (!guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) in get_gp_pmc_amd()
174 if (guest_cpuid_has(vcpu, X86_FEATURE_PERFCTR_CORE)) in amd_pmu_refresh()
Dsvm.c1122 !guest_cpuid_has(&svm->vcpu, X86_FEATURE_INVPCID)) in svm_recalc_instruction_intercepts()
1129 if (guest_cpuid_has(vcpu, X86_FEATURE_RDTSCP)) in svm_recalc_instruction_intercepts()
2788 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_get_msr()
2948 !guest_cpuid_has(vcpu, X86_FEATURE_VIRT_SSBD)) in svm_set_msr()
3116 if (!guest_cpuid_has(vcpu, X86_FEATURE_INVPCID)) { in invpcid_interception()
4121 vcpu->arch.xsaves_enabled = guest_cpuid_has(vcpu, X86_FEATURE_XSAVE) && in svm_vcpu_after_set_cpuid()
4127 guest_cpuid_has(vcpu, X86_FEATURE_NRIPS); in svm_vcpu_after_set_cpuid()
4129 svm->tsc_scaling_enabled = tsc_scaling && guest_cpuid_has(vcpu, X86_FEATURE_TSCRATEMSR); in svm_vcpu_after_set_cpuid()
4130 svm->lbrv_enabled = lbrv && guest_cpuid_has(vcpu, X86_FEATURE_LBRV); in svm_vcpu_after_set_cpuid()
4132 svm->v_vmload_vmsave_enabled = vls && guest_cpuid_has(vcpu, X86_FEATURE_V_VMSAVE_VMLOAD); in svm_vcpu_after_set_cpuid()
[all …]
Dsev.c2985 (guest_cpuid_has(&svm->vcpu, X86_FEATURE_RDTSCP) || in sev_es_init_vmcb()
2986 guest_cpuid_has(&svm->vcpu, X86_FEATURE_RDPID))) { in sev_es_init_vmcb()
2988 if (guest_cpuid_has(&svm->vcpu, X86_FEATURE_RDTSCP)) in sev_es_init_vmcb()
/linux-6.1.9/arch/x86/kvm/mmu/
Dmmu.c4627 guest_cpuid_has(vcpu, X86_FEATURE_GBPAGES); in guest_can_use_gbpages()