Re: [PATCH 1/2] Complete cpu initialization before signaling main thread.

2009-10-13 Thread Gleb Natapov
On Tue, Oct 13, 2009 at 03:23:48PM -0300, Marcelo Tosatti wrote: > On Tue, Oct 13, 2009 at 03:19:08PM -0300, Marcelo Tosatti wrote: > > > @@ -2003,15 +1991,25 @@ static void *ap_main_loop(void *_env) > > > on_vcpu(env, kvm_arch_do_ioperm, data); > > > #endif > > > > > > -/* signal V

Re: [PATCH 1/2] Complete cpu initialization before signaling main thread.

2009-10-13 Thread Gleb Natapov
On Tue, Oct 13, 2009 at 03:19:08PM -0300, Marcelo Tosatti wrote: > On Tue, Oct 13, 2009 at 02:17:19PM +0200, Gleb Natapov wrote: > > Otherwise some cpus may start executing code before others > > are fully initialized. > > > > Signed-off-by: Gleb Natapov > > --- > > qemu-kvm.c | 26 +++

Re: [PATCH 1/2] Complete cpu initialization before signaling main thread.

2009-10-13 Thread Marcelo Tosatti
On Tue, Oct 13, 2009 at 03:19:08PM -0300, Marcelo Tosatti wrote: > > @@ -2003,15 +1991,25 @@ static void *ap_main_loop(void *_env) > > on_vcpu(env, kvm_arch_do_ioperm, data); > > #endif > > > > -/* signal VCPU creation */ > > +setup_kernel_sigmask(env); > > + > > pthread_mu

Re: [PATCH 1/2] Complete cpu initialization before signaling main thread.

2009-10-13 Thread Marcelo Tosatti
On Tue, Oct 13, 2009 at 02:17:19PM +0200, Gleb Natapov wrote: > Otherwise some cpus may start executing code before others > are fully initialized. > > Signed-off-by: Gleb Natapov > --- > qemu-kvm.c | 26 -- > 1 files changed, 12 insertions(+), 14 deletions(-) > > diff

[PATCH 1/2] Complete cpu initialization before signaling main thread.

2009-10-13 Thread Gleb Natapov
Otherwise some cpus may start executing code before others are fully initialized. Signed-off-by: Gleb Natapov --- qemu-kvm.c | 26 -- 1 files changed, 12 insertions(+), 14 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 62ca050..3765818 100644 --- a/qemu-kvm.c