qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/4] move registering of cpu_reset to inside cp


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 1/4] move registering of cpu_reset to inside cpu_init
Date: Wed, 6 May 2009 22:36:16 +0300

On 5/6/09, Glauber Costa <address@hidden> wrote:
> This is not pc specific by any means. So we can be
>  moved to inside cpu_x86_init().
>
>  This is part of an attempt to only initialize kvm state
>  after everything is already properly initialized. If we don't
>  do that, we can race against, for example, APIC state if kvm vcpus
>  are ran in threads (happens in qemu-kvm.git, soon to happen here too)

I'd move this too to exec.c. Sparc registers two reset functions, the
first one for the main cpu disables halted state, the second one for
non-boot cpus halts them on reset. I wonder why i386 does not do the
same.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]