• Home
  • Raw
  • Download

Lines Matching refs:msr

197 static void synic_exit(struct kvm_vcpu_hv_synic *synic, u32 msr)  in synic_exit()  argument
203 hv_vcpu->exit.u.synic.msr = msr; in synic_exit()
212 u32 msr, u64 data, bool host) in synic_set_msr() argument
220 trace_kvm_hv_synic_set_msr(vcpu->vcpu_id, msr, data, host); in synic_set_msr()
223 switch (msr) { in synic_set_msr()
227 synic_exit(synic, msr); in synic_set_msr()
246 synic_exit(synic, msr); in synic_set_msr()
258 synic_exit(synic, msr); in synic_set_msr()
268 ret = synic_set_sint(synic, msr - HV_X64_MSR_SINT0, data, host); in synic_set_msr()
277 static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata) in synic_get_msr() argument
285 switch (msr) { in synic_get_msr()
302 *pdata = atomic64_read(&synic->sint[msr - HV_X64_MSR_SINT0]); in synic_get_msr()
727 static bool kvm_hv_msr_partition_wide(u32 msr) in kvm_hv_msr_partition_wide() argument
731 switch (msr) { in kvm_hv_msr_partition_wide()
932 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() argument
938 switch (msr) { in kvm_hv_set_msr_pw()
976 msr - HV_X64_MSR_CRASH_P0, in kvm_hv_set_msr_pw()
988 msr, data); in kvm_hv_set_msr_pw()
1004 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() argument
1008 switch (msr) { in kvm_hv_set_msr()
1054 return synic_set_msr(vcpu_to_synic(vcpu), msr, data, host); in kvm_hv_set_msr()
1059 int timer_index = (msr - HV_X64_MSR_STIMER0_CONFIG)/2; in kvm_hv_set_msr()
1068 int timer_index = (msr - HV_X64_MSR_STIMER0_COUNT)/2; in kvm_hv_set_msr()
1075 msr, data); in kvm_hv_set_msr()
1082 static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr_pw() argument
1088 switch (msr) { in kvm_hv_get_msr_pw()
1103 msr - HV_X64_MSR_CRASH_P0, in kvm_hv_get_msr_pw()
1111 vcpu_unimpl(vcpu, "Hyper-V unhandled rdmsr: 0x%x\n", msr); in kvm_hv_get_msr_pw()
1119 static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr() argument
1124 switch (msr) { in kvm_hv_get_msr()
1146 return synic_get_msr(vcpu_to_synic(vcpu), msr, pdata); in kvm_hv_get_msr()
1151 int timer_index = (msr - HV_X64_MSR_STIMER0_CONFIG)/2; in kvm_hv_get_msr()
1160 int timer_index = (msr - HV_X64_MSR_STIMER0_COUNT)/2; in kvm_hv_get_msr()
1172 vcpu_unimpl(vcpu, "Hyper-V unhandled rdmsr: 0x%x\n", msr); in kvm_hv_get_msr()
1179 int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr_common() argument
1181 if (kvm_hv_msr_partition_wide(msr)) { in kvm_hv_set_msr_common()
1185 r = kvm_hv_set_msr_pw(vcpu, msr, data, host); in kvm_hv_set_msr_common()
1189 return kvm_hv_set_msr(vcpu, msr, data, host); in kvm_hv_set_msr_common()
1192 int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr_common() argument
1194 if (kvm_hv_msr_partition_wide(msr)) { in kvm_hv_get_msr_common()
1198 r = kvm_hv_get_msr_pw(vcpu, msr, pdata); in kvm_hv_get_msr_common()
1202 return kvm_hv_get_msr(vcpu, msr, pdata); in kvm_hv_get_msr_common()