target-i386: fix typo
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.
Signed-off-by Paolo Bonzini <[email protected]>
--- target-i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/kvm.c +1 -1
@@ -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
Quoted 8 lines · Paolo Bonzini
The impact is small because
kvm_get_vcpu_eventsfixesenv->hflags, but it is wrong and could cause INITs to be delayed arbitrarily with -machine kernel_irqchip=off.Signed-off-by Paolo Bonzini <[email protected]>--- target-i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Richard Henderson <[email protected]>
r~