KVM: x86/pmu: Gate all "unimplemented MSR" prints on report_ignored_msrs
[linux-block.git] / arch / x86 / kvm / hyperv.c
index 71aff0edc0ed3d947e84c9d469ef868c802d232e..3eb8caf87ee4909f1830989685e3db13cbff0300 100644 (file)
@@ -1430,8 +1430,7 @@ static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data,
        case HV_X64_MSR_SYNDBG_CONTROL ... HV_X64_MSR_SYNDBG_PENDING_BUFFER:
                return syndbg_set_msr(vcpu, msr, data, host);
        default:
-               vcpu_unimpl(vcpu, "Hyper-V unhandled wrmsr: 0x%x data 0x%llx\n",
-                           msr, data);
+               kvm_pr_unimpl_wrmsr(vcpu, msr, data);
                return 1;
        }
        return 0;
@@ -1552,8 +1551,7 @@ static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host)
                        return 1;
                break;
        default:
-               vcpu_unimpl(vcpu, "Hyper-V unhandled wrmsr: 0x%x data 0x%llx\n",
-                           msr, data);
+               kvm_pr_unimpl_wrmsr(vcpu, msr, data);
                return 1;
        }
 
@@ -1608,7 +1606,7 @@ static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata,
        case HV_X64_MSR_SYNDBG_CONTROL ... HV_X64_MSR_SYNDBG_PENDING_BUFFER:
                return syndbg_get_msr(vcpu, msr, pdata, host);
        default:
-               vcpu_unimpl(vcpu, "Hyper-V unhandled rdmsr: 0x%x\n", msr);
+               kvm_pr_unimpl_rdmsr(vcpu, msr);
                return 1;
        }
 
@@ -1673,7 +1671,7 @@ static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata,
                data = APIC_BUS_FREQUENCY;
                break;
        default:
-               vcpu_unimpl(vcpu, "Hyper-V unhandled rdmsr: 0x%x\n", msr);
+               kvm_pr_unimpl_rdmsr(vcpu, msr);
                return 1;
        }
        *pdata = data;