Received: by 10.223.185.116 with SMTP id b49csp2395924wrg; Mon, 12 Feb 2018 08:54:32 -0800 (PST) X-Google-Smtp-Source: AH8x225s0XDPlY3/7CDyzAp2GN3UmLwVYhU7nbFZGjS6vJHD1JgueAnSDaHyf/VJrI17g7qRQcMr X-Received: by 10.99.56.7 with SMTP id f7mr9906193pga.114.1518454471997; Mon, 12 Feb 2018 08:54:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454471; cv=none; d=google.com; s=arc-20160816; b=hqyZyXOf63GO6/irSoXJUo6TpiywTAs45/fSd0tVCOD0IS6NEsbMpJpSeVK5sj6hyN 4C/7JlIUmLy023NWOcmKlV573EiqUsWDpoA/kFCDY7KSo/GzwWbx4mxKGwQVqlMXeUy1 TTJeOYl5rdqN+XGylTOgkGb9hJkIy8Gmf7f0aZFf6XZap09uJ76fE9mcvmzH8OhNwndb aUHx3tnS1TbdGT1eh7KuVPg2VjuVTfuoraLxqod1ouAToMUOD52kPsTGf5wreymNaKj3 3bhedjSycejYDW6zaStnCjFw/Hdw6zA8+8wLoi5sxMwjWSCXLmylbuUOtPNSmgBLbT87 g4pA== 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=6RsPkKGPXEZM1XB7zJVXH9edOJ2wXxlpCyhoDzQDxck=; b=ORbENmweDzugyK3RDHrHH7VvvmJTd94E68ISi6dQdmqRgeD0L/j1rszELAdQ1PRwxP JfaIQirPISDLJQ6qCvvRBnVDJpM1vUeY3OQuag6DU7uoPDhA7nAz0gu47vDF6cVJENt7 Ma53mdLjYbAIRZbtATtmDhx3Nh/4CGMTxFrTKDoxmhGvHkT77hbWNgclcuj3VSvA/X1Y GgsZ5MKG3o2S4a9BiaetOcg0Y7G9CWeCwyl1omMvbvPE2ibm14DB/ElKlAVH1TSWqf6M U6yG69GG6q3w1kzpa1X7uRJYlXTmgGZI+g2hxDxkPXVTN2cQZEIAPYda+/bu5/mOGgdN SW2g== 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 e87si99753pfd.352.2018.02.12.08.54.17; Mon, 12 Feb 2018 08:54:31 -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 S935860AbeBLO1d (ORCPT + 99 others); Mon, 12 Feb 2018 09:27:33 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37864 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933794AbeBLO1c (ORCPT ); Mon, 12 Feb 2018 09:27:32 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 09AA4814DF4C; Mon, 12 Feb 2018 14:27:32 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-147.ams2.redhat.com [10.36.116.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA8F32166BAE; Mon, 12 Feb 2018 14:27:31 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id CE66B15C2D4; Mon, 12 Feb 2018 15:27:30 +0100 (CET) Date: Mon, 12 Feb 2018 15:27:30 +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 , Stefan Hajnoczi Subject: Re: [PATCH v3 1/2] drm/virtio: Add window server support Message-ID: <20180212142730.g2646v77qsvzd5ff@sirius.home.kraxel.org> References: <49785e0d-936a-c3b4-62dd-aafc7083a942@collabora.com> <20180205122017.4vb5nlpodkq2uhxa@sirius.home.kraxel.org> <20180205160322.sntv5uoqp5o7flnh@sirius.home.kraxel.org> <20180206142302.vdjyqmnoypydci4t@sirius.home.kraxel.org> <04687943-847b-25a7-42ef-a21b4c7ef0cf@collabora.com> <38880e66-b676-1170-c2ca-5a5603c5b521@collabora.com> <20180212115242.z3qv5uejbnhgvd6o@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 12 Feb 2018 14:27:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 12 Feb 2018 14:27:32 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'kraxel@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 03:00:24PM +0100, Tomeu Vizoso wrote: > On 02/12/2018 12:52 PM, Gerd Hoffmann wrote: > > Hi, > > > > > can we reach agreement on whether vsock should be involved in this? > > > > I think the best approach would be to have guest proxy and host proxy > > use vsock for the wayland protocol. Use a wayland protocol extension to > > reference the buffers in stdvga / ivshmem / virtio-gpu. Only the two > > proxies need to understand the extension, the client <=> guest proxy and > > host proxy <=> server communication would be standard wayland protocol. > > Thanks for the ideas. What I haven't understood yet is how you see the > actual passing of buffers via vsock. Are you thinking of using ancillary > data to pass FDs, or something else? I was more thinking about a struct containing enough info to allow the proxy on the host side find the buffer, something like: struct { enum type { stdvga, virtio-cpu, ... } pcislot device; union { int stdvga_pcibar_offset; int virtio_gpu_resource_id; } } So when the guest proxy gets a message with a fd referencing a buffer it would have to figure where the buffer is, rewrite the message into the struct above for the host proxy. The host proxy would rewrite the message again for the server. cheers, Gerd