From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXml7-0006Uy-A6 for qemu-devel@nongnu.org; Tue, 17 Mar 2015 04:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXml4-0007yW-3h for qemu-devel@nongnu.org; Tue, 17 Mar 2015 04:21:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXml3-0007yO-U9 for qemu-devel@nongnu.org; Tue, 17 Mar 2015 04:21:50 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 2219D8EA2F for ; Tue, 17 Mar 2015 08:21:49 +0000 (UTC) Message-ID: <1426580506.27188.46.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Tue, 17 Mar 2015 09:21:46 +0100 In-Reply-To: <550739CE.90903@redhat.com> References: <1426240033-24673-1-git-send-email-kraxel@redhat.com> <1426240033-24673-4-git-send-email-kraxel@redhat.com> <550739CE.90903@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/9] virtio-gpu/2d: add virtio gpu core code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Dave Airlie , qemu-devel@nongnu.org, "Michael S. Tsirkin" Hi, > > + for (i = 0; i < g->conf.max_outputs; i++) { > > + g->scanout[i].con = > > + graphic_console_init(DEVICE(g), i, &virtio_gpu_ops, g); > > + if (i > 0) { > > + dpy_gfx_replace_surface(g->scanout[i].con, NULL); > > GTK can't cope very well with NULL surfaces (read: after patch 7 (when > using -vga virtio finally works) "x86_64-softmmu/qemu-system-x86_64 -vga > virtio -display gtk" segfaults). With SDL (SDL2), it works fine. Yes, I know. I have a gtk patch for that in the pipeline. But that alone doesn't get multihead work sanely as there is at least one more problem to tackle: Mouse coordinates are not correct. Our options are: (a) Have guest notify host about screen arrangement, then transform coordinates in qemu. Dave did that initially. (b) Have a guest agent (spice style). (c) Have one tablet per head and link them. That is very simliar to physical hardware (think touchscreen). I think (c) will work best long-term, but it is also the most difficult one as various projects are involved here to get the guest-side configuration done. I've changed the number of heads to be 1 by default, we better sort all those issues before we flip the multihead default switch. cheers, Gerd