Home
last modified time | relevance | path

Searched refs:guest_can_use (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/arch/x86/kvm/svm/
Dnested.c110 if (!guest_can_use(&svm->vcpu, X86_FEATURE_V_VMSAVE_VMLOAD)) in nested_vmcb_needs_vls_intercept()
591 if (unlikely(guest_can_use(vcpu, X86_FEATURE_LBRV) && in nested_vmcb02_prepare_save()
648 if (guest_can_use(vcpu, X86_FEATURE_VGIF) && in nested_vmcb02_prepare_control()
686 if (guest_can_use(vcpu, X86_FEATURE_TSCRATEMSR) && in nested_vmcb02_prepare_control()
707 if (guest_can_use(vcpu, X86_FEATURE_NRIPS)) in nested_vmcb02_prepare_control()
717 if (guest_can_use(vcpu, X86_FEATURE_NRIPS)) in nested_vmcb02_prepare_control()
725 if (guest_can_use(vcpu, X86_FEATURE_LBRV)) in nested_vmcb02_prepare_control()
732 if (guest_can_use(vcpu, X86_FEATURE_PAUSEFILTER)) in nested_vmcb02_prepare_control()
736 if (guest_can_use(vcpu, X86_FEATURE_PFTHRESHOLD)) in nested_vmcb02_prepare_control()
1023 if (guest_can_use(vcpu, X86_FEATURE_NRIPS)) in nested_svm_vmexit()
[all …]
Dsvm.h446 return guest_can_use(&svm->vcpu, X86_FEATURE_VGIF) && in nested_vgif_enabled()
498 return guest_can_use(&svm->vcpu, X86_FEATURE_VNMI) && in nested_vnmi_enabled()
Dsvm.c1059 (is_guest_mode(vcpu) && guest_can_use(vcpu, X86_FEATURE_LBRV) && in svm_update_lbrv()
2851 !guest_can_use(vcpu, X86_FEATURE_TSCRATEMSR)) in svm_get_msr()
3001 if (!guest_can_use(vcpu, X86_FEATURE_TSCRATEMSR)) { in svm_set_msr()
3023 if (guest_can_use(vcpu, X86_FEATURE_TSCRATEMSR) && in svm_set_msr()
/linux-6.6.21/arch/x86/kvm/
Dcpuid.h272 static __always_inline bool guest_can_use(struct kvm_vcpu *vcpu, in guest_can_use() function
Dx86.c1028 if (guest_can_use(vcpu, X86_FEATURE_XSAVES) && in kvm_load_guest_xsave_state()
1059 if (guest_can_use(vcpu, X86_FEATURE_XSAVES) && in kvm_load_host_xsave_state()
/linux-6.6.21/arch/x86/kvm/vmx/
Dvmx.c2062 if (!guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_get_msr()
2370 if (!guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_set_msr()
4579 __enabled = guest_can_use(__vcpu, X86_FEATURE_##feat_name); \
7785 if (guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_vcpu_after_set_cpuid()
7794 if (guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_vcpu_after_set_cpuid()
Dnested.c6429 if (guest_can_use(vcpu, X86_FEATURE_VMX) && in vmx_get_nested_state()
6570 if (!guest_can_use(vcpu, X86_FEATURE_VMX)) in vmx_set_nested_state()
6604 (!guest_can_use(vcpu, X86_FEATURE_VMX) || in vmx_set_nested_state()
/linux-6.6.21/arch/x86/kvm/mmu/
Dmmu.c4789 guest_can_use(vcpu, X86_FEATURE_GBPAGES), in reset_guest_rsvds_bits_mask()
4866 guest_can_use(vcpu, X86_FEATURE_GBPAGES), in reset_shadow_zero_bits_mask()