Received: by 10.223.176.5 with SMTP id f5csp2959543wra; Thu, 1 Feb 2018 08:37:40 -0800 (PST) X-Google-Smtp-Source: AH8x226VWkmF3uAgOPy5L9sxd5VvNG8xPjbW06A0Lr7nIfyYQp7TD5M6guH/ptdKwCCbQq16INZ+ X-Received: by 10.99.95.20 with SMTP id t20mr18864095pgb.79.1517503060338; Thu, 01 Feb 2018 08:37:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517503060; cv=none; d=google.com; s=arc-20160816; b=Y7BsX2BrM5hU0yjtcaL9CYM1NwZHzkBmyUOQjMWTC29rQAs0EAa0ClYrz+p360kWJF DrJNbY0J0ft1/E4DMJyHn9vSeQKfGtz1cwNXs28n4yK7wASRl6sG8iGByHo/wk4yqsoe qywdyZBZG+c4fZt2bK0UWtA5ayJOKjppT05X8KB2HrNb9bkTYRNkQ8XShMpdsLk+87Pn vYzcPzJ5Mw6ORDwYVKNUCQSXxsPUANrkhqfuIolZx+9I4ZSbJfZ1EIfOyh+0VzGvlZIu LVkJkb82jKKn9aQs22ugBIlqLbHFEZThKhgZdOkqjNOXsWLfahgU3GvadrhPvdkYZKG1 3Zrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Wf/w3AuYVJhSuE7TPuDK1j/PosVLJPH5lMnj5az9lP8=; b=N4DRudnbfcYVTT4ofoCgsT0As95OuW8DFO7B34gr366IYZV5M7+Z7oP6Vd6v77Rkcg IHhGaaesg6/kqsVzWjU3hVli51Kf5zQg5W4sIYvueW4FZ0ywTemK7D/PJnZg3LXz1f4G ISuUhrrauv0LPQFF8S04UbmSFoOttG3jbWGBhihTCW8ifPooM+ZKG1ogha51SKmjqM7w h3iU75Nc02/8IdEHFKfnVeIk9gLbVld+OdukOFDBC6dcyssOTUJABf41BnoiemKcJJt4 CJ2eK/gE+e/lv7Fms5hbZjYoZnYI0VS1pIwlpOok2O39MpHmU4MWkrbSerJ/r/9xkr9N aiBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si35862plb.117.2018.02.01.08.37.23; Thu, 01 Feb 2018 08:37:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752088AbeBAQg7 (ORCPT + 99 others); Thu, 1 Feb 2018 11:36:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54892 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbeBAQg6 (ORCPT ); Thu, 1 Feb 2018 11:36:58 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D9BB19CF93; Thu, 1 Feb 2018 16:36:58 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-227.ams2.redhat.com [10.36.116.227]) by smtp.corp.redhat.com (Postfix) with ESMTP id 16758619C4; Thu, 1 Feb 2018 16:36:24 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 57C70279; Thu, 1 Feb 2018 17:36:23 +0100 (CET) Date: Thu, 1 Feb 2018 17:36:23 +0100 From: Gerd Hoffmann To: Tomeu Vizoso Cc: linux-kernel@vger.kernel.org, Zach Reizner , kernel@collabora.com, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, "Michael S. Tsirkin" , David Airlie , Jason Wang Subject: Re: [PATCH v3 1/2] drm/virtio: Add window server support Message-ID: <20180201163623.5cs2ysykg5wgulf4@sirius.home.kraxel.org> References: <20180126135803.29781-1-tomeu.vizoso@collabora.com> <20180126135803.29781-2-tomeu.vizoso@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180126135803.29781-2-tomeu.vizoso@collabora.com> User-Agent: NeoMutt/20171215 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 01 Feb 2018 16:36:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sorry for joining the party late. Had a broken finger and was offline for a bunch of weeks (and a buif backlog afterwards ...). > This is to allow clients running within VMs to be able to communicate > with a compositor in the host. Clients will use the communication > protocol that the compositor supports, and virtio-gpu will assist with > making buffers available in both sides, and copying content as needed. Why not use virtio-vsock to run the wayland protocol? I don't like the idea to duplicate something with very simliar functionality in virtio-gpu. > It is expected that a service in the guest will act as a proxy, > interacting with virtio-gpu to support unmodified clients. If you have a guest proxy anyway using virtio-sock for the protocol stream and virtio-gpu for buffer sharing (and some day 3d rendering too) should work fine I think. > When the client notifies the compositor that it can read from that buffer, > the proxy should copy the contents from the SHM region to the virtio-gpu > resource and call DRM_VIRTGPU_TRANSFER_TO_HOST. What is the plan for the host side? I see basically two options. Either implement the host wayland proxy directly in qemu. Or implement it as separate process, which then needs some help from qemu to get access to the buffers. The later would allow qemu running independant from the desktop session. cheers, Gerd