* [Qemu-devel] [PATCH] remove pending exception on vcpu reset.
@ 2010-01-06 14:30 Gleb Natapov
2010-01-11 16:01 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2010-01-06 14:30 UTC (permalink / raw)
To: qemu-devel
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>
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index de79eb7..4084503 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -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.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] remove pending exception on vcpu reset.
2010-01-06 14:30 [Qemu-devel] [PATCH] remove pending exception on vcpu reset Gleb Natapov
@ 2010-01-11 16:01 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2010-01-11 16:01 UTC (permalink / raw)
To: Gleb Natapov; +Cc: qemu-devel
On 01/06/2010 08:30 AM, Gleb Natapov wrote:
> 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>
>
Applied. Thanks.
Regards,
Anthony Liguori
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index de79eb7..4084503 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -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.
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-11 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 14:30 [Qemu-devel] [PATCH] remove pending exception on vcpu reset Gleb Natapov
2010-01-11 16:01 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).