Re: [patch 1/8] test: allow functions to execute on non-irq context remotely

2010-03-27 Thread Avi Kivity
On 03/25/2010 08:07 PM, Marcelo Tosatti wrote: On Thu, Mar 25, 2010 at 06:25:56PM +0200, Avi Kivity wrote: On 03/24/2010 11:24 PM, Marcelo Tosatti wrote: Which allows code to execute on remote cpus while receiving interrupts. Also move late smp initialization to common code, and the

Re: [patch 1/8] test: allow functions to execute on non-irq context remotely

2010-03-25 Thread Marcelo Tosatti
On Thu, Mar 25, 2010 at 06:25:56PM +0200, Avi Kivity wrote: > On 03/24/2010 11:24 PM, Marcelo Tosatti wrote: > >Which allows code to execute on remote cpus while receiving interrupts. > > > >Also move late smp initialization to common code, and the smp loop > >to C code. > > > >+ > >+void smp_loo

Re: [patch 1/8] test: allow functions to execute on non-irq context remotely

2010-03-25 Thread Avi Kivity
On 03/24/2010 11:24 PM, Marcelo Tosatti wrote: Which allows code to execute on remote cpus while receiving interrupts. Also move late smp initialization to common code, and the smp loop to C code. + +void smp_loop(void) +{ +void (*fn)(void *data); +void *data; + +asm volatile

[patch 1/8] test: allow functions to execute on non-irq context remotely

2010-03-24 Thread Marcelo Tosatti
Which allows code to execute on remote cpus while receiving interrupts. Also move late smp initialization to common code, and the smp loop to C code. Signed-off-by: Marcelo Tosatti Index: qemu-kvm/kvm/user/test/lib/x86/smp.c === --