Received: by 10.223.185.116 with SMTP id b49csp3264149wrg; Mon, 12 Feb 2018 23:42:26 -0800 (PST) X-Google-Smtp-Source: AH8x224aIIDB8uXDvgStjGxMt0evp9EuAiuRPyRKx5W/Ez/QOOIjptoL39xd7GnKI73d3+f11tvN X-Received: by 10.99.174.5 with SMTP id q5mr288318pgf.3.1518507746380; Mon, 12 Feb 2018 23:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518507746; cv=none; d=google.com; s=arc-20160816; b=C2a9oTx10DkGQksf586I3OO/xjOUkctYYJm3Ovj54isL5ovMI3Sg2VdBxO3N3HjimI ykbwYlQ8tCQGC7xbLauPVNdML6ngq2TTI842l96qI/bO7o6E014CJqfX8gRJNH8Ze3s5 vLYAwYGLuHiF7A6rS28Y8qSpfYnwLwDTwIQS/iZz/shWbJgmdF2jzTtRG0ISbUJ1rL6c 6KKfV/xrBrAxkkxQsHQZCHN4egtal7A4oYPOKMYP5njVRSh9s0O3ChsU72jxE1KCpdnn npVctKLPPizyql0RZssy156zSco95hxHAF21hBaygNnH63SHY9Vcve9VR65+53ruIj0Y yb3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=nHzw5RfXlO2JnR4N5zVQ3qvcKoP56SjPj4LcKKM8t+Q=; b=CU3AlIBkYQhwxgO87zG/cKQuW4r/grh9xZ58tKsmHQ/pIVcthCxDRw3VZR7B9bnc0T yDarfgFsf3xi57DpYGf+OWpqzdNf/jWRu8YQrV5ec0kv6wWiI5RNKrhy088eOU+I/XF7 1zsNEeXB0T//lwweJwAXVdR/NFzIuhvi6tne0k7MjMC+fIBj9wDob4gh9IaSoOPHQBOV CsMS3R+kig8m/AKgrdBcLMa9hb/AqKvcKN75Vq6bKoEIP2p2WPcFcTTCulX24xZfzrtS fZErtjL+nwJegE6lnUr2/M3TyCEADGMR1mfOkyK/rW8VGyHVBnN+3rG3PmMGafpkqxv2 Me0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=slg7EAgt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a62si3988663pgc.650.2018.02.12.23.42.11; Mon, 12 Feb 2018 23:42:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=slg7EAgt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933568AbeBMHld (ORCPT + 99 others); Tue, 13 Feb 2018 02:41:33 -0500 Received: from mail-lf0-f45.google.com ([209.85.215.45]:46234 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933463AbeBMHlc (ORCPT ); Tue, 13 Feb 2018 02:41:32 -0500 Received: by mail-lf0-f45.google.com with SMTP id q194so23814174lfe.13 for ; Mon, 12 Feb 2018 23:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=nHzw5RfXlO2JnR4N5zVQ3qvcKoP56SjPj4LcKKM8t+Q=; b=slg7EAgtR0Rxg6aZPUCFEvwGOxfwGO4nSLhgi2urdgr32+bhH+h98+mCHooFF2qHT+ aBrsYT0g7Gdh1ZffzWcFC6IKAa8yNUhuHJ6jDa4P8M8XuCGy8EOGStU6nhP3/AshehUT QCUR9pnIFyo93JB9ZfYFVO21JwIXWOFgsKGPcO8RWTtZ3L2KqYFgePHt/33R9sW1OAvt KfsrtpQX4q45NWaoTgmKtcXaHdjJ2P5PdM8I65buhFHTPYXYUu3Ss3FeFEeBAsFSone1 /Egtl1fpPx5hbePOCjLBhpOlxDUNivEMBL34BwfJe+juaZAbCn5AZuswd160RGp8r32/ fpBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=nHzw5RfXlO2JnR4N5zVQ3qvcKoP56SjPj4LcKKM8t+Q=; b=VKuE0VDq1x1n/v73FYSkwMudbMCSIWYrZhRMJYha4cinPwlylLV7fXr5yYLLH+fW5S m65erhZT6bACDmY1BRvhHteRXD3HyvnicD7si2YuhTwrMvsJGV3X7rFbLgjvAyDH01Ei VavNzD+DnremX0MAqZe+VE8l2/k3/kztzGXkKQyCL8g0Lc+EC2SHu2VdpiijNVO0TDb5 kUVvVJUzlXlMzBL/dTEWveeO5Ya0XYwOxqDPNZnV8wl7FJ/d1lX2SN0lgHm5TlbIz/6/ FNaWDEJMpz3olC8gJOSRK3mPrnLOkMNxJycAGo2AITqLHxNe0vgZBz47KsBXgp5v4OlH weZQ== X-Gm-Message-State: APf1xPB1+H7egJlK2FOgPsqOjvWkxQ+XiPQ3LzLhHDVGE7MNM/KMRbuy T/9SMp5TFYH4QveIVeGgB80= X-Received: by 10.25.209.205 with SMTP id i196mr289409lfg.43.1518507690703; Mon, 12 Feb 2018 23:41:30 -0800 (PST) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id c63sm2019119lfg.55.2018.02.12.23.41.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 23:41:30 -0800 (PST) Date: Tue, 13 Feb 2018 09:41:22 +0200 From: Pekka Paalanen To: Gerd Hoffmann Cc: Tomeu Vizoso , "Michael S. Tsirkin" , David Airlie , Stefan Hajnoczi , Jason Wang , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, kernel@collabora.com Subject: Re: [PATCH v3 1/2] drm/virtio: Add window server support Message-ID: <20180213094122.5675d5f9@eldfell> In-Reply-To: <20180212114540.iygbha554busy4ip@sirius.home.kraxel.org> References: <20180126135803.29781-1-tomeu.vizoso@collabora.com> <20180126135803.29781-2-tomeu.vizoso@collabora.com> <20180201163623.5cs2ysykg5wgulf4@sirius.home.kraxel.org> <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> <20180212114540.iygbha554busy4ip@sirius.home.kraxel.org> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/S6BabFRhENcv38d7GI_W2Bn"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/S6BabFRhENcv38d7GI_W2Bn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 12 Feb 2018 12:45:40 +0100 Gerd Hoffmann wrote: > Hi, >=20 > > > (a) software rendering: client allocates shared memory buffer, ren= ders > > > into it, then passes a file handle for that shmem block togeth= er > > > with some meta data (size, format, ...) to the wayland server. > > >=20 > > > (b) gpu rendering: client opens a render node, allocates a buffer, > > > asks the cpu to renders into it, exports the buffer as dma-buf > > > (DRM_IOCTL_PRIME_HANDLE_TO_FD), passes this to the wayland ser= ver > > > (again including meta data of course). > > >=20 > > > Is that correct? =20 > >=20 > > Both are correct descriptions of typical behaviors. But it isn't spec'ed > > anywhere who has to do the buffer allocation. =20 >=20 > Well, according to Pekka's reply it is spec'ed that way, for the > existing buffer types. So for server allocated buffers you need > (a) a wayland protocol extension and (b) support for the extension > in the clients. Correct. Or simply a libEGL that uses such Wayland extension behind everyone's back. I believe such things did at least exist, but are probably not relevant for this discussion. (If there is a standard library, like libEGL, loaded and used by both a server and a client, that library can advertise custom private Wayland protocol extensions and the client side can take advantage of them, both without needing any code changes on either the server or the client.) > We also need a solution for the keymap shmem block. I guess the keymap > doesn't change all that often, so maybe it is easiest to just copy it > over (host proxy -> guest proxy) instead of trying to map the host shmem > into the guest? Yes, I believe that would be a perfectly valid solution for that particular case. Thanks, pq --Sig_/S6BabFRhENcv38d7GI_W2Bn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAlqClqIACgkQI1/ltBGq qqcPag/+KR7kWEABD7egQVQqfbX0wcPINa9SBMPaCP+L/yorn0Uv/CuctYa+zAMb MirWq1cz1Ssm1Yewy2Jotmlwmlxr79U7diwkpBQ8Aj/a2Da4y9O4EVg+wNfRz61x hH2Vs6Ygtzrq+xaJXRRBHUvQrqmeIAqd3dLT/3q8XiFLPsEj4p8mBpZUZJ5f/Fs+ l06ne5wo2VJUKJxtlRQEDLiPNi0/nq9B3+6fF+/d5VqUvrv8lR/2cVFGQ1saeRnT mJxU+xilloGqyPTu9CEZjYZjAYw37HXxuotZEedvbn0YsUMl50JkNX/o4SiKDzVU UQ3OJaTkzUgsfYKTtCTEeWAkhFH45D9vper1LrrWQmwEXEJ1Z57Z7+p2WuOSnv0A ruQo1OsKmS1mEqXsPCQcH7PVEzRIU1gF89My2CAM2KL8C+i/pV8n2zpkshka1QGL bOn7qSfY9KZZ8NjEdOIA1829vBtx1FLQbw+nGMpeyxUh/L0G4Oja4ik1BYdePfzS eXF5IrPgdIjy5ZjKeOOE3WBtPS/Jp+FbU6jlrnvnjEOJijBdlnoWnYaxkZ1OkMPB KfjwBwjNRxwi8R8CYT0+yvAwMhpHHhrUlL1ucj6TIPGfDw1Mrwd4bFmvOInAkC5G wXdbld2Nxa9GWmD6F3H3wlWCCV/VxeZKnAzev8lFAiy+Wmsx/lI= =JNFH -----END PGP SIGNATURE----- --Sig_/S6BabFRhENcv38d7GI_W2Bn--