From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-4.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 174FA5A2B; Thu, 14 Apr 2022 13:57:52 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id D4D195A1B; Thu, 14 Apr 2022 13:57:48 +0000 (UTC) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by atuin.qyliss.net (Postfix) with ESMTPS id A6FC75A15 for ; Thu, 14 Apr 2022 13:57:43 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id B71F6320262C; Thu, 14 Apr 2022 09:57:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 14 Apr 2022 09:57:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1649944659; x=1650031059; bh=dsCahjRhr9 /SmWffRD1XasVFcWFpYy/Rcgm+Gf8IicM=; b=ge2KO8xtcBsWsrufGCVqNmboPn 6Qh3yuuONB5qsN/1yyba26Ak6IqGmd+HFXNjHZavJrcxYO67/X47bWc9esdXkyLf xMxsrzyt6QLJ/OOQKjuQfYhLXmyZHQArcrfjqIJMHoF2ttTNELtCG2MXlI8hZPzj UwPsMwrES+v+tiY6p1bV6XF1oqgqYlXGUU0iv88xERPQCOb7lSBYdLj0hfKnxSsv 0aeNP0e7tg0LbFDNkb8FIhhyc6YnGUTAN+4HMXFS8XDxuz9HOnysSja2bU/11OrE viWAwQ50MH5BOgmMCg2Tz9PnTP5/7+d0NI598SxoMHSzq0oSMq8X8kUBHNhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1649944659; x= 1650031059; bh=dsCahjRhr9/SmWffRD1XasVFcWFpYy/Rcgm+Gf8IicM=; b=P 9XE7/EhSHBmG/fH3rCbPjjrxwS5JhpWjnbm0KxWCs4fiMV2XW8Tplba6f0lhHcMA dEVi1rOZLuxcV811sn5tvIkR9aYoilAGeGa9DCmIgdR8QI8YUWCcMBZ3D3obRM33 2573xENywHyD/WPGLW1iclqtoBMTW7c3rtDaylgvRHz1zMN6F8GvbufdQhwagGOh IJ34NDChq4h4p2ry2htEnsU79Af2m0faZBxxBhTcQNncHlxZErZWHBJ8X7bmH51R 3XI/s7fL33JDBjy9N/gnBi0534crLBtmE4B/Sfwor13kGKWZO8Cdy7i8yV7sdq/3 cxhMzPeIMTvcZxkTR8yzg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudelfedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtjeenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhi sheqnecuggftrfgrthhtvghrnhepheegvdegjeevkedttefgtdfhuefhvdeluefhtddvge euieeufffgtdeikeefffehnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpvhhirhht ihhoqdhsphgvtgdrmhgupdhkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehqhihlihhsshesvghvvgdrqhihlhhishhs rdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Apr 2022 09:57:38 -0400 (EDT) Received: by eve.qyliss.net (Postfix, from userid 1000) id 275E91CA; Thu, 14 Apr 2022 13:57:37 +0000 (UTC) Date: Thu, 14 Apr 2022 13:57:37 +0000 From: Alyssa Ross To: Thomas Leonard Subject: Re: Using virtio-gpu instead of virtwl Message-ID: <20220414135737.lvfbrch34kjojn3s@eve> References: <20220315140604.ta433j557jsoknkv@eve> <20220315202339.6bqrzsf4yjkggbup@eve> <20220321160534.w4oifq3cdygrobrm@eve> <20220322111639.pvr5gxz6zmeu5oua@eve> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="szk5rsfauonzlud6" Content-Disposition: inline In-Reply-To: Message-ID-Hash: YIXOHORATPFMN5QGTGJJ2B3UMDTQCYQ2 X-Message-ID-Hash: YIXOHORATPFMN5QGTGJJ2B3UMDTQCYQ2 X-MailFrom: qyliss@eve.qyliss.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-discuss.spectrum-os.org-0; header-match-discuss.spectrum-os.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: discuss@spectrum-os.org X-Mailman-Version: 3.3.5 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --szk5rsfauonzlud6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 13, 2022 at 05:12:13PM +0000, Thomas Leonard wrote: > On Wed, 6 Apr 2022 at 12:19, Thomas Leonard wrote: > [ converting from virtwl to virtio-gpu ] > > I tried, but failed, to figure out the protocol. I did manage to get a > > test application showing a little animation, but it crashes after a > > few seconds. > > OK, I found a solution to this: you can just open the device file > twice and use one instance for Wayland messages and the other for > allocating images. This avoids the first race. With that, I got the > proxy converted: > > https://github.com/talex5/wayland-proxy-virtwl/pull/28 > > Though I'm not sure it's an improvement: +1,819 =E2=88=92577 lines! > > Instructions for configuring crosvm to use it: > > https://github.com/talex5/wayland-proxy-virtwl#virtio-gpu-support > > And I wrote up my guesses about the protocol here: > > https://github.com/talex5/wayland-proxy-virtwl/blob/master/virtio-spec.= md That's extremely helpful, thanks for writing it up! > I don't think it's possible to avoid races completely, but it seems to > be working reasonably well so far. I wonder if it would be worth asking about the remaining problems on the relevant kernel mailing lists, since they sound like protocol issues rather than anything specific to your implementation. I tracked down the series where they were added[1], perhaps the =46rom/To/Cc in that posting would be a good starting point? If you do reach out, please CC me (and this list, if you want)! [1]: https://lore.kernel.org/dri-devel/20210921232024.817-1-gurchetansingh@= chromium.org/ --szk5rsfauonzlud6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmJYKEgACgkQ+dvtSFmy ccCzrRAApIiqeCLgA+30fsFoNmc/Frzy6bQvbHoFytASFCi6TskjebO1sv8JNrBI lREOmpPovO5UqPzFCBUyY2xCToNE6/PNFe/sr4DSjriCPeUYGlWx/XZBM1is75Qu giZX4UW+tagfsuP2mJucVZC7wTqwRiQblbT6yvHngcgikkQTM1R/GN2WNQNXbaTN y8HjLHAbXuSz7dtI49wO95e1U4a036tRa+q5UTSUSQ6E5Rq4a7WXd94/iRetracn AC2OWrFts2Rpjw/yOLlmK+KojPYLxbhRZgEQ5x7gdtdNNH6xR5/8kAMhhG6jGCmW QqmxeY6AlifAT5PvUpf4DKPWLqrhUWYb0pqqhN4GgPgJDGZyFGuLB0ERVxR6uuqD Of981WSBpJ1qu3Hf2H1IF/aJTKAQ2s8hDoTXx00LoK01szxBJq8xKQ1xxKCsBTLR cQ7Jyxay6bIfWGfoRSEUvnfFsnc0VJxK0MBgNXWBWWoWRe5ni93duWGnB1tMPbx7 Ktm3LxJdF1TbW9aH457rBjmBp1Bci1dzXWZNmImCMACaP1SMXiecX5h9FpBBZrkK PC0xvE555nMlhpn3z6g07kzNnGWrTQP8drBWcAVcnKvPvoRitFbpSEcIaGa6YTCG n4W5F+qXopOesP+z9YFtXjNkAy/GQAktwE7jfHatxTPqgLUxIAM= =iA4n -----END PGP SIGNATURE----- --szk5rsfauonzlud6--