mirror of
https://github.com/qemu/qemu.git
synced 2025-08-07 23:16:19 +00:00
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 <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3f7638ec40
commit
e73223a584
@ -227,6 +227,7 @@ int kvm_arch_init_vcpu(CPUState *env)
|
|||||||
|
|
||||||
void kvm_arch_reset_vcpu(CPUState *env)
|
void kvm_arch_reset_vcpu(CPUState *env)
|
||||||
{
|
{
|
||||||
|
env->exception_injected = -1;
|
||||||
env->interrupt_injected = -1;
|
env->interrupt_injected = -1;
|
||||||
env->nmi_injected = 0;
|
env->nmi_injected = 0;
|
||||||
env->nmi_pending = 0;
|
env->nmi_pending = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user