Re: [PATCH v4 3/5] hw/virtio: change dmabuf mutex to QemuMutex

2024-03-12 Thread Alex Bennée
Albert Esteve writes: > On Tue, Feb 20, 2024 at 11:39 AM Manos Pitsidianakis > wrote: > > Hello Albert, > > This is a point of confusion for me; Volker recently pointed out in a > patch for virtio-snd that all its code runs under the BQL. > > Hello Manos, > > I updated it to QemuMutex afte

Re: [PATCH v4 3/5] hw/virtio: change dmabuf mutex to QemuMutex

2024-03-11 Thread Albert Esteve
On Tue, Feb 20, 2024 at 11:39 AM Manos Pitsidianakis < manos.pitsidiana...@linaro.org> wrote: > Hello Albert, > > This is a point of confusion for me; Volker recently pointed out in a > patch for virtio-snd that all its code runs under the BQL. Hello Manos, I updated it to QemuMutex after a sug

Re: [PATCH v4 3/5] hw/virtio: change dmabuf mutex to QemuMutex

2024-02-20 Thread Manos Pitsidianakis
Hello Albert, This is a point of confusion for me; Volker recently pointed out in a patch for virtio-snd that all its code runs under the BQL. Is this code ever called without BQL, for example do the backend read/write functions from vhost-user.c run without the BQL? On Mon, 19 Feb 2024 16:34

[PATCH v4 3/5] hw/virtio: change dmabuf mutex to QemuMutex

2024-02-19 Thread Albert Esteve
Change GMutex by QemuMutex to be able to use lock contexts with `WITH_QEMU_LOCK_GUARD`. As the lock needs to be initialised and there is no central point for initialisation, add an init public function and call it from virtio.c, each time a new backend structure is initialised. Signed-off-by: Alb