Re: [Qemu-devel] [PATCH] rcutorture: fix compilation on 32-bit ppc

2015-03-23 Thread Paolo Bonzini
On 21/03/2015 16:44, Peter Maydell wrote: > On 21 March 2015 at 15:34, Paolo Bonzini wrote: >> 32-bit PPC cannot do atomic operations on long long. Inside the loops, >> we are already using local counters that are summed at the end of >> the run---with one exception in rcu_read_stress_test: fix

Re: [Qemu-devel] [PATCH] rcutorture: fix compilation on 32-bit ppc

2015-03-21 Thread Andreas Färber
Am 21.03.2015 um 16:34 schrieb Paolo Bonzini: > 32-bit PPC cannot do atomic operations on long long. Inside the loops, > we are already using local counters that are summed at the end of > the run---with one exception in rcu_read_stress_test: fix it to use > the same technique. Then, use a mutex

Re: [Qemu-devel] [PATCH] rcutorture: fix compilation on 32-bit ppc

2015-03-21 Thread Peter Maydell
On 21 March 2015 at 15:34, Paolo Bonzini wrote: > 32-bit PPC cannot do atomic operations on long long. Inside the loops, > we are already using local counters that are summed at the end of > the run---with one exception in rcu_read_stress_test: fix it to use > the same technique. Then, use a mut

[Qemu-devel] [PATCH] rcutorture: fix compilation on 32-bit ppc

2015-03-21 Thread Paolo Bonzini
32-bit PPC cannot do atomic operations on long long. Inside the loops, we are already using local counters that are summed at the end of the run---with one exception in rcu_read_stress_test: fix it to use the same technique. Then, use a mutex to protect the global counts. Performance does not mat