virtio-gpu vq code isn't thread safe

2015-06-16 Thread Dave Airlie
On 16 June 2015 at 17:12, Gerd Hoffmann wrote: > On Di, 2015-06-16 at 14:55 +1000, Dave Airlie wrote: >> Hey Gerd, >> >> This probably doesn't matter yet, but they virtgpu_vq buffer >> allocation code you added isn't threadsafe. > > Right, I'll add a lock (or do you have a patch already?) I've go

virtio-gpu vq code isn't thread safe

2015-06-16 Thread Dave Airlie
Hey Gerd, This probably doesn't matter yet, but they virtgpu_vq buffer allocation code you added isn't threadsafe. I'm not sure what was wrong with the original code I wrote, you never contacted me with reasons for rewriting it, but the Linux kmalloc isn't that slow, but if we want some form of c

virtio-gpu vq code isn't thread safe

2015-06-16 Thread Gerd Hoffmann
On Di, 2015-06-16 at 14:55 +1000, Dave Airlie wrote: > Hey Gerd, > > This probably doesn't matter yet, but they virtgpu_vq buffer > allocation code you added isn't threadsafe. Right, I'll add a lock (or do you have a patch already?) > I'm not sure what was wrong with the original code I wrote, y