We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6d6a7 commit 598a790Copy full SHA for 598a790
arch/x86/kvm/x86.c
@@ -3791,12 +3791,11 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
3791
data &= ~(u64)0x8; /* ignore TLB cache disable */
3792
3793
/* Handle McStatusWrEn */
3794
- if (data == BIT_ULL(18)) {
3795
- vcpu->arch.msr_hwcr = data;
3796
- } else if (data != 0) {
+ if (data & ~BIT_ULL(18)) {
3797
kvm_pr_unimpl_wrmsr(vcpu, msr, data);
3798
return 1;
3799
}
+ vcpu->arch.msr_hwcr = data;
3800
break;
3801
case MSR_FAM10H_MMIO_CONF_BASE:
3802
if (data != 0) {
0 commit comments