From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbUPC-0002H1-Hj for qemu-devel@nongnu.org; Mon, 14 Sep 2015 10:06:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbUP4-0002M8-S2 for qemu-devel@nongnu.org; Mon, 14 Sep 2015 10:06:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbUP4-0002LW-Ne for qemu-devel@nongnu.org; Mon, 14 Sep 2015 10:06:42 -0400 Message-ID: <1442239599.13588.5.camel@redhat.com> From: Gerd Hoffmann Date: Mon, 14 Sep 2015 16:06:39 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] virtio-gpu: cursor update not in sync with resource update List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau Cc: Dave Airlie , QEMU Hi, > Afaik, the goal of the seperate cursor queue is to update cursor > quickly (probably to give good input responsiveness). However, the > VIRTIO_GPU_CMD_UPDATE_CURSOR references a surface that is uploaded via > the ctrl queue. The same resource id may be reused for cursor update. > But there is no synchronization between the two queues. So often, the > cursor set results in last update being shown. Should the kernel wait > for the update to finish? Yes (for new cursors). > But then why having 2 different queues? > Should the update be done on the cursor queue instead? or should the > different cursor be cached (with different id) and qemu to do the > synchronization? The guest can upload different cursors and then switch between them without re-uploading and therefore without ctrl queue updates. Thats why they have an id in the first place ... cheers, Gerd