Home
last modified time | relevance | path

Searched refs:MSR_TYPE_R (Results 1 – 6 of 6) sorted by relevance

/linux/arch/x86/kvm/
H A Dx86.h660 MSR_TYPE_R = BIT(0), enumerator
662 MSR_TYPE_RW = MSR_TYPE_R | MSR_TYPE_W,
H A Dx86.c527 BUILD_BUG_ON(rw != MSR_TYPE_R && rw != MSR_TYPE_W); in kvm_do_msr_access()
534 if (ret && rw == MSR_TYPE_R) in kvm_do_msr_access()
1722 return kvm_do_msr_access(vcpu, index, data, true, MSR_TYPE_R, in do_get_feature_msr()
2021 return kvm_do_msr_access(vcpu, index, data, host_initiated, MSR_TYPE_R, in kvm_get_msr_ignored_check()
3881 BUILD_BUG_ON(access != MSR_TYPE_R && access != MSR_TYPE_W); in kvm_access_xstate_msr()
3887 if (access == MSR_TYPE_R) in kvm_access_xstate_msr()
3901 kvm_access_xstate_msr(vcpu, msr_info, MSR_TYPE_R); in kvm_get_xstate_msr()
/linux/arch/x86/kvm/vmx/
H A Dvmx.c4196 if (type & MSR_TYPE_R) { in vmx_set_intercept_for_msr()
4350 vmx_disable_intercept_for_msr(vcpu, MSR_IA32_TSC, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4360 vmx_disable_intercept_for_msr(vcpu, MSR_CORE_C1_RES, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4361 vmx_disable_intercept_for_msr(vcpu, MSR_CORE_C3_RESIDENCY, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4362 vmx_disable_intercept_for_msr(vcpu, MSR_CORE_C6_RESIDENCY, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4363 vmx_disable_intercept_for_msr(vcpu, MSR_CORE_C7_RESIDENCY, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4366 vmx_disable_intercept_for_msr(vcpu, MSR_IA32_APERF, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4367 vmx_disable_intercept_for_msr(vcpu, MSR_IA32_MPERF, MSR_TYPE_R); in vmx_recalc_msr_intercepts()
4381 vmx_set_intercept_for_msr(vcpu, MSR_IA32_XFD_ERR, MSR_TYPE_R, in vmx_recalc_msr_intercepts()
H A Dnested.c577 if (type & MSR_TYPE_R && !vmx_test_msr_bitmap_read(msr_bitmap_l1, msr)) in nested_vmx_disable_intercept_for_x2apic_msr()
616 if (types & MSR_TYPE_R) in BUILD_NVMX_MSR_INTERCEPT_HELPER()
629 nested_vmx_merge_msr_bitmaps(msr, MSR_TYPE_R)
729 MSR_TYPE_R | MSR_TYPE_W); in nested_vmx_prepare_msr_bitmap()
757 MSR_IA32_APERF, MSR_TYPE_R); in nested_vmx_prepare_msr_bitmap()
760 MSR_IA32_MPERF, MSR_TYPE_R); in nested_vmx_prepare_msr_bitmap()
/linux/arch/x86/kvm/svm/
H A Dsvm.c673 if (type & MSR_TYPE_R) { in svm_set_intercept_for_msr()
818 svm_disable_intercept_for_msr(vcpu, MSR_IA32_APERF, MSR_TYPE_R); in svm_recalc_msr_intercepts()
819 svm_disable_intercept_for_msr(vcpu, MSR_IA32_MPERF, MSR_TYPE_R); in svm_recalc_msr_intercepts()
H A Dsev.c4566 svm_set_intercept_for_msr(vcpu, MSR_AMD64_GUEST_TSC_FREQ, MSR_TYPE_R, in sev_es_recalc_msr_intercepts()