remove pending exception on vcpu reset.
PATCH 1/1 remove pending exception on vcpu reset.
Without this qemu can even start on kvm modules with events support since default value of exception_injected in zero and this is #DE exception.
Signed-off-by Gleb Natapov <[email protected]>
target-i386/kvm.c +1 -0
@@ -227,6 +227,7 @@ int kvm_arch_init_vcpu(CPUState *env)void kvm_arch_reset_vcpu (CPUState *env) { + env->exception_injected =-1 ; env->interrupt_injected =-1 ; env->nmi_injected =0 ; env->nmi_pending =0 ;
--
Gleb.
Anthony Liguori
AppliedQuoted 6 lines · Gleb Natapov
Without this qemu can even start on kvm modules with events support since default value of
exception_injectedin zero and this is #DE exception.Signed-off-by Gleb Natapov<[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 18 lines
target-i386/kvm.c +1
-1@@ -227,6 +227,7 @@ int kvm_arch_init_vcpu(CPUState *env)void kvm_arch_reset_vcpu (CPUState *env) { + env->exception_injected =-1 ; env->interrupt_injected =-1 ; env->nmi_injected =0 ; env->nmi_pending =0 ; --Gleb.