Lines Matching refs:msr_index
3572 static bool kvm_is_msr_to_save(u32 msr_index)
3577 if (msrs_to_save[i] == msr_index)
7021 static void kvm_probe_msr_to_save(u32 msr_index)
7025 if (rdmsr_safe(msr_index, &dummy[0], &dummy[1]))
7032 switch (msr_index) {
7065 (msr_index - MSR_IA32_RTIT_ADDR0_A >=
7070 if (msr_index - MSR_ARCH_PERFMON_PERFCTR0 >=
7075 if (msr_index - MSR_ARCH_PERFMON_EVENTSEL0 >=
7080 if (msr_index - MSR_ARCH_PERFMON_FIXED_CTR0 >=
7093 msrs_to_save[num_msrs_to_save++] = msr_index;
8065 u32 msr_index, u64 *pdata)
8070 r = kvm_get_msr_with_filter(vcpu, msr_index, pdata);
8075 if (kvm_msr_user_space(vcpu, msr_index, KVM_EXIT_X86_RDMSR, 0,
8079 trace_kvm_msr_read_ex(msr_index);
8083 trace_kvm_msr_read(msr_index, *pdata);
8088 u32 msr_index, u64 data)
8093 r = kvm_set_msr_with_filter(vcpu, msr_index, data);
8098 if (kvm_msr_user_space(vcpu, msr_index, KVM_EXIT_X86_WRMSR, data,
8102 trace_kvm_msr_write_ex(msr_index, data);
8106 trace_kvm_msr_write(msr_index, data);
8111 u32 msr_index, u64 *pdata)
8113 return kvm_get_msr(emul_to_vcpu(ctxt), msr_index, pdata);