From: Avi Kivity <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index f2c81f0..c5d44e0 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -659,7 +659,7 @@ static int get_msr_entry(struct kvm_msr_entry *entry,
CPUState *env)
#endif
default:
#ifdef KVM_CAP_MCE
- if (entry->index >= MSR_MC0_CTL && \
+ if (entry->index >= MSR_MC0_CTL &&
entry->index < MSR_MC0_CTL + (env->mcg_cap & 0xff) * 4) {
env->mce_banks[entry->index - MSR_MC0_CTL] = entry->data;
break;
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html