Skip to contentSkip to conversation

target-i386: fix typo

PATCH In review Paolo Bonzini 2 participants 2 messages Nov 2, 2016 – Nov 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-i386: fix typo

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.

---
 target-i386/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/kvm.c +1 -1
index 1c0864e..f62264a 100644
@@ -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;
Signature · 1 line
2.7.4