|
@@ -107,6 +107,9 @@ EXPORT_SYMBOL_GPL(kvm_x86_ops);
|
|
|
static bool __read_mostly ignore_msrs = 0;
|
|
|
module_param(ignore_msrs, bool, S_IRUGO | S_IWUSR);
|
|
|
|
|
|
+static bool __read_mostly report_ignored_msrs = true;
|
|
|
+module_param(report_ignored_msrs, bool, S_IRUGO | S_IWUSR);
|
|
|
+
|
|
|
unsigned int min_timer_period_us = 500;
|
|
|
module_param(min_timer_period_us, uint, S_IRUGO | S_IWUSR);
|
|
|
|
|
@@ -2325,7 +2328,9 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
|
|
|
/* Drop writes to this legacy MSR -- see rdmsr
|
|
|
* counterpart for further detail.
|
|
|
*/
|
|
|
- vcpu_unimpl(vcpu, "ignored wrmsr: 0x%x data 0x%llx\n", msr, data);
|
|
|
+ if (report_ignored_msrs)
|
|
|
+ vcpu_unimpl(vcpu, "ignored wrmsr: 0x%x data 0x%llx\n",
|
|
|
+ msr, data);
|
|
|
break;
|
|
|
case MSR_AMD64_OSVW_ID_LENGTH:
|
|
|
if (!guest_cpuid_has(vcpu, X86_FEATURE_OSVW))
|
|
@@ -2362,8 +2367,10 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
|
|
|
msr, data);
|
|
|
return 1;
|
|
|
} else {
|
|
|
- vcpu_unimpl(vcpu, "ignored wrmsr: 0x%x data 0x%llx\n",
|
|
|
- msr, data);
|
|
|
+ if (report_ignored_msrs)
|
|
|
+ vcpu_unimpl(vcpu,
|
|
|
+ "ignored wrmsr: 0x%x data 0x%llx\n",
|
|
|
+ msr, data);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -2581,7 +2588,9 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
|
|
|
msr_info->index);
|
|
|
return 1;
|
|
|
} else {
|
|
|
- vcpu_unimpl(vcpu, "ignored rdmsr: 0x%x\n", msr_info->index);
|
|
|
+ if (report_ignored_msrs)
|
|
|
+ vcpu_unimpl(vcpu, "ignored rdmsr: 0x%x\n",
|
|
|
+ msr_info->index);
|
|
|
msr_info->data = 0;
|
|
|
}
|
|
|
break;
|