Re: [Qemu-devel] [RFC 22/38] cpu: update interrupt_request atomically

2015-08-25 Thread Paolo Bonzini
> This patch is needed as is. One real risk this is protecting > against is the call of cpu_interrupt(cpu_foo) when the calling > thread is not cpu_foo's thread--this write to interrupt_request > might race with other writes, e.g. another call to cpu_interrupt > from another thread, or the clearin

Re: [Qemu-devel] [RFC 22/38] cpu: update interrupt_request atomically

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 18:09:48 -0700, Paolo Bonzini wrote: > On 23/08/2015 17:23, Emilio G. Cota wrote: > > Signed-off-by: Emilio G. Cota > > --- > > cpu-exec.c | 9 ++--- > > exec.c | 2 +- > > hw/openrisc/cputimer.c | 2 +-

Re: [Qemu-devel] [RFC 22/38] cpu: update interrupt_request atomically

2015-08-24 Thread Paolo Bonzini
On 23/08/2015 17:23, Emilio G. Cota wrote: > Signed-off-by: Emilio G. Cota > --- > cpu-exec.c | 9 ++--- > exec.c | 2 +- > hw/openrisc/cputimer.c | 2 +- > qom/cpu.c | 4 ++-- > target-arm/helper-a

[Qemu-devel] [RFC 22/38] cpu: update interrupt_request atomically

2015-08-24 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- cpu-exec.c | 9 ++--- exec.c | 2 +- hw/openrisc/cputimer.c | 2 +- qom/cpu.c | 4 ++-- target-arm/helper-a64.c| 2 +- target-arm/helper.c