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: by atuin.qyliss.net (Postfix, from userid 496) id 71B5E7DEC4; Mon, 21 Mar 2022 16:06:08 +0000 (UTC) Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 6C4A27DE78; Mon, 21 Mar 2022 16:05:42 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 9ED9D7DDDB; Mon, 21 Mar 2022 16:05:40 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by atuin.qyliss.net (Postfix) with ESMTPS id 1A2BF7DDDA for ; Mon, 21 Mar 2022 16:05:37 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1671E5C0218; Mon, 21 Mar 2022 12:05:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 21 Mar 2022 12:05:36 -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; bh=1uh+GvHhcgb+/3bjhJ/3T00gJ8/l6RfrzjoWTx f2DL4=; b=GBLOTRtCxBD/06lJ5vPTI2zslNoz+7KipoIvZL+A1q9/VBOveVCGYO E+3i/hRY9HI/v6HuTYz6K6KhSo3zhPGnwf5d6gq9pe84r52dFC58slnF8dPPaEtY yK1BDZj7RPt70h3TI180/INpi1xjOnRGQDl9ZoDB9NQ1qfy8EeyE/EdWooNlY42t xqse6+kzN3W/7QaVvI1kSrLgCntzqPDWsoFVqc9cO2KuThwPmt5ClQDuQtk6+yar k60zthyAEXme+WNnQ0PjpQZw/YZvvXCuWnWvSiBvycXCpIIAcCj37nKM080wPNLT 84Tk5bIZ0vc+G4NiovAj6iVnVAJdoWLg== 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=fm3; bh=1uh+GvHhcgb+/3bjh J/3T00gJ8/l6RfrzjoWTxf2DL4=; b=BhSHju9VFTEqrwo2JoamYwuDQLdVgNtrp lH4Wk4X8Xw71hB6pvH90fQVLJ4x86PamHwk9+tMesDlSNu9UOSlgqlNtt/TsZgTd KuOtJNXqLnljvxHnivemuelBte86MGsUEzaUfGFuco4gsjWvUgvw+DTuk21h7J3j rRn7UAXvMdiYthLkNcWiNAOT869Ti9ZnNShHl5B1cjO31TMfXy91UbABlM4/VWV0 2nEeo+8Yx53L27yG9tk+wpylkIT2KgkqtJ6uTAKd6w/nZAW33Tpvsk0KgvjcxKWQ xKp82aWN8W2hvbNvFC/oXR5fnJtW5Fb1i7oTJrzdzKEPPgOm9PclQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegfedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtjeenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhi sheqnecuggftrfgrthhtvghrnheptdejjeevheeufeektdfgtdejvdehveekjedugeegie ejleejteeggeevuefhhfdtnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehqhihlihhsshesvg hvvgdrqhihlhhishhsrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Mar 2022 12:05:35 -0400 (EDT) Received: by eve.qyliss.net (Postfix, from userid 1000) id 2800C848D; Mon, 21 Mar 2022 16:05:34 +0000 (UTC) Date: Mon, 21 Mar 2022 16:05:34 +0000 From: Alyssa Ross To: Thomas Leonard Subject: Re: Using virtio-gpu instead of virtwl Message-ID: <20220321160534.w4oifq3cdygrobrm@eve> References: <87o871tqqu.fsf@alyssa.is> <87bl2sp3p3.fsf@alyssa.is> <20220315140604.ta433j557jsoknkv@eve> <20220315202339.6bqrzsf4yjkggbup@eve> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2w5xx7lfy6deio7h" Content-Disposition: inline In-Reply-To: Message-ID-Hash: KI7ESWERONSAXTEW3FBDQX2IN6BLWSDA X-Message-ID-Hash: KI7ESWERONSAXTEW3FBDQX2IN6BLWSDA 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: --2w5xx7lfy6deio7h Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 21, 2022 at 12:10:43PM +0000, Thomas Leonard wrote: > Looking at the Linux virtio_gpu driver, it seems that using contexts > requires virgl: > > static int virtio_gpu_context_init_ioctl(struct drm_device *dev, void > *data, struct drm_file *file) > { > ... > if (!vgdev->has_context_init || !vgdev->has_virgl_3d) > return -EINVAL; > > https://github.com/torvalds/linux/blob/f443e374ae131c168a065ea1748feac6b2= e76613/drivers/gpu/drm/virtio/virtgpu_ioctl.c#L732 > > I think perhaps that crosvm is compiled without the "virgl_renderer" > feature (it's not in the default set), and this is causing it to crash > because that's also "self.default_component". I don't know how to > compile crosvm with virgl enabled, though. It wasn't easy, but I got it to build[1]. I hope that helps. It adds both virgl_renderer and virgl_renderer_next. I think virgl_renderer is on by default with --gpu, and virgl_renderer_next is used with the --gpu-render-server argument. Hopefully at least one of those does the right thing =E2=80=94 let me know! [1]: https://github.com/NixOS/nixpkgs/pull/165128 --2w5xx7lfy6deio7h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmI4okwACgkQ+dvtSFmy ccBexhAAmM2+wm6eTq+DoLFvCOPAVTQuvjdtaqmN92dBOUh6agGG9y2TKep9zA2h Bfb//iKbWC3tUfrW3bGEjicVxj1xIsvsJTwhjJNBL9XnZC/+5ttWQUENrIe52MuP tb2CFvjdU1rORyVUI0Lh09xkHF3OgwSIF232jJdrmpeiMFKFrY/q3I+r2/UNHu3T xUFpK9jan3fVrmIB5Z9LY5tPAEaoAUiEcqga3lSH699Vf5fxYoPQClN2kV30T8mL XiWgPCGZfRuspG5piWdz2iL2nUmGJZj63rVRVx+OC5BmZ7XUmmuw2Nm1JNpUzQY2 6FlFifUqYxmz9zEmo2mgX2lRsHN9/SAE4QCBj7AXffcp1z7E/dhG7fu9su6XLu9f ERwjDLslzy9T5k++oMqPTdXNszj6v7DOiePtUIB/O4UildHFkFRa5Ou8Rjtc7x8I FMpeGpoPp9RI9tj6gTAApg9LWejxpeblPGy4jD/n2/QN0GZIDT28HJ5WTq2xXj17 c6iO/0a3KV/ayO5hRXitwdDK2jH03E1N+fYu+sYuS9U2sG9mdAVyTav7043KUxJf zfw/xEUpv3kFRgVV/J6deXZh8WtdUATxSPhHVvCPFVc2lvL06YU0L28DB1I6YPwL L8ruoaccgTRrXTKGi8VkLNOHTvBYRFgwdqDZh+rtlU7666SA4/A= =Mxq8 -----END PGP SIGNATURE----- --2w5xx7lfy6deio7h--