]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
target-i386: fix typo
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 19:58:25 +0000 (20:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2016 13:08:17 +0000 (14:08 +0100)
The impact is small because kvm_get_vcpu_events fixes env->hflags, but
it is wrong and could cause INITs to be delayed arbitrarily with
-machine kernel_irqchip=off.

Reported-by: Achille Fouilleul <achille.fouilleul@gadz.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/kvm.c

index 1c0864ed16d436e673e8ade422fdabd6eef351bc..f62264a7a8ff71de6de169506936be4774786d42 100644 (file)
@@ -2855,7 +2855,7 @@ MemTxAttrs kvm_arch_post_run(CPUState *cpu, struct kvm_run *run)
     if (run->flags & KVM_RUN_X86_SMM) {
         env->hflags |= HF_SMM_MASK;
     } else {
-        env->hflags &= HF_SMM_MASK;
+        env->hflags &= ~HF_SMM_MASK;
     }
     if (run->if_flag) {
         env->eflags |= IF_MASK;