From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61ca-00028p-Gn for qemu-devel@nongnu.org; Tue, 20 Sep 2011 10:48:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R61cW-0005Q3-G3 for qemu-devel@nongnu.org; Tue, 20 Sep 2011 10:48:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R61cW-0005Py-6K for qemu-devel@nongnu.org; Tue, 20 Sep 2011 10:48:24 -0400 Message-ID: <4E78A7B5.6090607@redhat.com> Date: Tue, 20 Sep 2011 16:48:21 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <4E78A2ED.50401@siemens.com> In-Reply-To: <4E78A2ED.50401@siemens.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel 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 libspice-server, so we don't have a handle for it. > If not, can we use a > sleep here (how long?)? Good question. I'm tempted to just rip it out and run qxl_spice_oom() unconditionally. The yield thing is best effort only anyway, there is no guarantee that the spice server thread actually gets scheduled and puts some stuff into the release ring. cheers, Gerd