[Top][All Lists]
[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 cpu
From: |
Glauber Costa |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] move registering of cpu_reset to inside cpu_init |
Date: |
Wed, 6 May 2009 18:45:38 -0300 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, May 06, 2009 at 10:36:16PM +0300, Blue Swirl wrote:
> 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.
Probably because we were halting the cpu separatedly.
Btw, after looking again, cpu_reset looks like an even better place
to hold the halted change.
- Re: [Qemu-devel] [PATCH 3/4] move halted state setting to inside of cpu_x86_init, (continued)
- [Qemu-devel] Re: [PATCH 2/4] move CPUID_APIC flag to where it belongs, Jan Kiszka, 2009/05/06
- [Qemu-devel] Re: [PATCH 2/4] move CPUID_APIC flag to where it belongs, Glauber Costa, 2009/05/06
- RE: [Qemu-devel] Re: [PATCH 2/4] move CPUID_APIC flag to where it belongs, Stanislav, 2009/05/06
- Re: [Qemu-devel] Re: [PATCH 2/4] move CPUID_APIC flag to where it belongs, Glauber Costa, 2009/05/06
- RE: [Qemu-devel] Re: [PATCH 2/4] move CPUID_APIC flag to where it belongs, Stanislav, 2009/05/06
- Re: [Qemu-devel] Re: [PATCH 2/4] move CPUID_APIC flag to where it belongs, Anthony Liguori, 2009/05/06
[Qemu-devel] Re: [PATCH 1/4] move registering of cpu_reset to inside cpu_init, Jan Kiszka, 2009/05/06
Re: [Qemu-devel] [PATCH 1/4] move registering of cpu_reset to inside cpu_init, Blue Swirl, 2009/05/06
- Re: [Qemu-devel] [PATCH 1/4] move registering of cpu_reset to inside cpu_init,
Glauber Costa <=