Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Gerd Hoffmann
On 09/20/11 17:00, Jan Kiszka wrote: On 2011-09-20 16:48, Gerd Hoffmann wrote: On 09/20/11 16:27, Jan Kiszka wrote: Hi Gerd, can you (or anyone familiar with those bits) comment on pthread_yield() in ioport_write() of hw/qxl.c? Which threads are supposed to run this way? spice server thread

Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Jan Kiszka
On 2011-09-20 16:48, Gerd Hoffmann wrote: > On 09/20/11 16:27, Jan Kiszka wrote: >> Hi Gerd, >> >> can you (or anyone familiar with those bits) comment on pthread_yield() >> in ioport_write() of hw/qxl.c? Which threads are supposed to run this >> way? > > spice server thread. > >> Can't this rel

Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Gerd Hoffmann
On 09/20/11 16:27, Jan Kiszka wrote: Hi Gerd, can you (or anyone familiar with those bits) comment on pthread_yield() in ioport_write() of hw/qxl.c? Which threads are supposed to run this way? spice server thread. Can't this relation be expressed explicitly? The thread is created by libsp

[Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Jan Kiszka
Hi Gerd, can you (or anyone familiar with those bits) comment on pthread_yield() in ioport_write() of hw/qxl.c? Which threads are supposed to run this way? Can't this relation be expressed explicitly? If not, can we use a sleep here (how long?)? The background is that yielding easily breaks into