Lines Matching refs:msr

33 static bool kvm_hv_msr_partition_wide(u32 msr)  in kvm_hv_msr_partition_wide()  argument
37 switch (msr) { in kvm_hv_msr_partition_wide()
107 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, in kvm_hv_set_msr_pw() argument
113 switch (msr) { in kvm_hv_set_msr_pw()
163 msr - HV_X64_MSR_CRASH_P0, in kvm_hv_set_msr_pw()
175 msr, data); in kvm_hv_set_msr_pw()
190 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() argument
194 switch (msr) { in kvm_hv_set_msr()
231 msr, data); in kvm_hv_set_msr()
238 static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr_pw() argument
244 switch (msr) { in kvm_hv_get_msr_pw()
261 msr - HV_X64_MSR_CRASH_P0, in kvm_hv_get_msr_pw()
269 vcpu_unimpl(vcpu, "Hyper-V unhandled rdmsr: 0x%x\n", msr); in kvm_hv_get_msr_pw()
277 static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr() argument
282 switch (msr) { in kvm_hv_get_msr()
308 vcpu_unimpl(vcpu, "Hyper-V unhandled rdmsr: 0x%x\n", msr); in kvm_hv_get_msr()
315 int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr_common() argument
317 if (kvm_hv_msr_partition_wide(msr)) { in kvm_hv_set_msr_common()
321 r = kvm_hv_set_msr_pw(vcpu, msr, data, host); in kvm_hv_set_msr_common()
325 return kvm_hv_set_msr(vcpu, msr, data, host); in kvm_hv_set_msr_common()
328 int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_hv_get_msr_common() argument
330 if (kvm_hv_msr_partition_wide(msr)) { in kvm_hv_get_msr_common()
334 r = kvm_hv_get_msr_pw(vcpu, msr, pdata); in kvm_hv_get_msr_common()
338 return kvm_hv_get_msr(vcpu, msr, pdata); in kvm_hv_get_msr_common()