Lines Matching refs:msr
153 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in intel_is_valid_msr() argument
158 switch (msr) { in intel_is_valid_msr()
166 ret = get_gp_pmc(pmu, msr, MSR_IA32_PERFCTR0) || in intel_is_valid_msr()
167 get_gp_pmc(pmu, msr, MSR_P6_EVNTSEL0) || in intel_is_valid_msr()
168 get_fixed_pmc(pmu, msr); in intel_is_valid_msr()
175 static int intel_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) in intel_pmu_get_msr() argument
180 switch (msr) { in intel_pmu_get_msr()
194 if ((pmc = get_gp_pmc(pmu, msr, MSR_IA32_PERFCTR0)) || in intel_pmu_get_msr()
195 (pmc = get_fixed_pmc(pmu, msr))) { in intel_pmu_get_msr()
198 } else if ((pmc = get_gp_pmc(pmu, msr, MSR_P6_EVNTSEL0))) { in intel_pmu_get_msr()
211 u32 msr = msr_info->index; in intel_pmu_set_msr() local
214 switch (msr) { in intel_pmu_set_msr()
246 if ((pmc = get_gp_pmc(pmu, msr, MSR_IA32_PERFCTR0))) { in intel_pmu_set_msr()
252 } else if ((pmc = get_fixed_pmc(pmu, msr))) { in intel_pmu_set_msr()
255 } else if ((pmc = get_gp_pmc(pmu, msr, MSR_P6_EVNTSEL0))) { in intel_pmu_set_msr()