Skip to contentSkip to conversation

remove pending exception on vcpu reset.

PATCH Applied Gleb Natapov 2 participants 2 messages Jan 6, 2010 – Jan 11, 2010

lore
Share & tools
lore
#0 lore raw

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.

target-i386/kvm.c +1 -0
index de79eb7..4084503 100644
@@ -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.

#1 lore raw
Quoted 6 lines · Gleb Natapov

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.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 18 lines
target-i386/kvm.c +1 -1
index de79eb7..4084503 100644
@@ -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.