From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etBpm-00005E-0I for qemu-devel@nongnu.org; Tue, 06 Mar 2018 07:36:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etBpi-0000aK-VN for qemu-devel@nongnu.org; Tue, 06 Mar 2018 07:36:46 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36638 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etBpi-0000Zy-QB for qemu-devel@nongnu.org; Tue, 06 Mar 2018 07:36:42 -0500 Date: Tue, 6 Mar 2018 13:36:41 +0100 From: Gerd Hoffmann Message-ID: <20180306123641.ti4nixbpfnbddv7q@sirius.home.kraxel.org> References: <20180306083832.8144-1-kraxel@redhat.com> <20180306083832.8144-3-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 2/3] spice: add scanout_dmabuf support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: QEMU > > @@ -969,6 +983,7 @@ static const DisplayChangeListenerOps display_listener_gl_ops = { > > > > .dpy_gl_scanout_disable = qemu_spice_gl_scanout_disable, > > .dpy_gl_scanout_texture = qemu_spice_gl_scanout_texture, > > + .dpy_gl_scanout_dmabuf = qemu_spice_gl_scanout_dmabuf, > > .dpy_gl_update = qemu_spice_gl_update, > > }; > > > > -- > > 2.9.3 > > > > > > Looks good. Btw, how is multi-monitor designed? Is there going to be a > scanout/dmabuf per monitor when using vfio/mdev? Yes, that would be one QemuConsole per head (simliar to virtio-gpu). There is no multihead support right now though. Not in the drivers, and also not in the vfio API. Adding api for it without an actual test case didn't look like a good plan to me. Extending the API later is easier than dealing with a broken api in case we miss some detail and only figure later when the first driver tries to use the untested API ... cheers, Gerd