Signed-off-by: Avi Kivity <avi@xxxxxxxxxx> --- qemu-kvm-x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html