From: Avi Kivity <a...@redhat.com> init/reset was left out.
Signed-off-by: Avi Kivity <a...@redhat.com> diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 71a6319..1f0d37a 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -1291,6 +1291,7 @@ int kvm_arch_init_vcpu(CPUState *cenv) qemu_kvm_load_lapic(cenv); + cenv->interrupt_injected = -1; #ifdef KVM_CPUID_SIGNATURE /* Paravirtualization CPUIDs */ @@ -1452,6 +1453,7 @@ void kvm_arch_push_nmi(void *opaque) void kvm_arch_cpu_reset(CPUState *env) { + env->interrupt_injected = -1; kvm_arch_load_regs(env); if (!cpu_is_bsp(env)) { if (kvm_irqchip_in_kernel()) { -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html