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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: by atuin.qyliss.net (Postfix, from userid 496) id 8B0DC70C8; Wed, 3 Nov 2021 11:44:03 +0000 (UTC) Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 8A27A6FF1; Wed, 3 Nov 2021 11:43:38 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 8B3DA7026; Wed, 3 Nov 2021 11:43:36 +0000 (UTC) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by atuin.qyliss.net (Postfix) with ESMTPS id ED8F97025 for ; Wed, 3 Nov 2021 11:43:33 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 732143201C61; Wed, 3 Nov 2021 07:43:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 03 Nov 2021 07:43:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=gYDY20RtfXvgvu/IsaxkFuXJGX JZs1qM4XpnmIKCGMA=; b=TY4ZaHH7AbDj0ueoI6KiX3Mcctn7Atk/ChC6qMz9Wh pu2iqnGJz4YTzP7wqAfbuhkj7BDhpSeYZQt2qCwHCdjo819UPiX2Gt2s3/CfdXPD p4+otLOcpdDBPYECU+f/FH8LAHF5nKjkHkbFLSOPYQU9HYg2ftMVW4vKXWLF38bL Bz+4Qwqsdtqj/CjUoHesdUcGHx7PK5JRXeiIkDeWoEiJPDgOjb0HmUCvC/8cJ7Zk GvDwGh5D+gqGSuitIdJkBVgr7O8ZyHjGVnBusSlDc/j/TXFWTNwrN+TjC4ps9hxN oQkoB/bzLbgrCslJ4JJivLXqZpfsPgPE31km9Oo1Wt2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=gYDY20 RtfXvgvu/IsaxkFuXJGXJZs1qM4XpnmIKCGMA=; b=KGIlmuubfJI2cepW9uUiTB ys3t/Cm97VpXX94L3C//dzZWVA0tOxZYnyEmjLlvhl/lhV4lX4NKkjpA6GwBLD7Y hs9443uYLfj44Yj1w/aCslXYoTpB9IyBJj3S0fe6YZBf+1Ndi8roKlIgzYNw8IF/ y9nJEASj4YVpiCTKzqCNjveRDJa65wdQWKQeF0x5wfB0XCD1sg2XYTyN8APcdiLH EOWs6vA+gMmUAuGhVc0iDhoYNKkcPsexG/rYUNtZs7yzyL9YP85orCz52FP7FEqI d3EqfVai6zG4Jf6YbWMxueQCgjyxRfmq5KaHDPu5XehDfNVBx0Ai5pX9M/R2zqFA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtddvgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddutddmnecujfgurhephffvuf gjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehh ihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepjefguddutdeuteeifeeuge ejfeelkeelfeeigfdufeejiedvjefhgedtgeeliefhnecuffhomhgrihhnpehkohhmphhu thgvrdgttgdpfhhrvggvuggvshhkthhophdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrdhish X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Nov 2021 07:43:30 -0400 (EDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id 756C7AFE; Wed, 3 Nov 2021 11:43:29 +0000 (UTC) From: Alyssa Ross To: Nathan Myers , discuss@spectrum-os.org Subject: Re: GPU virtualization in Spectrum In-Reply-To: References: <20211026200434.w6yzfnl6duhqjgig@x220.qyliss.net> Date: Wed, 03 Nov 2021 11:43:27 +0000 Message-ID: <87lf25tqg0.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Message-ID-Hash: WNMVJXOIB3OZSD6M7UM5A7ZHM4XVVA24 X-Message-ID-Hash: WNMVJXOIB3OZSD6M7UM5A7ZHM4XVVA24 X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.4 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain Nathan Myers writes: > This is a very welcome update. > > I wonder: is Vulkan itself practical as a virtualized > interface? I can imagine that shaders running on behalf > of different VMs would need to be guarded against seeing > memory meant for other VMs. Might this mean swapping in > a different memory map when running on behalf of each VM, > one at a time? Overhead from swapping memory maps might > be better than no access at all. > > The use case I am concerned for is exercising Vulkan as > a general compute acceleration engine, as in Kompute > (http://kompute.cc), running alongside ordinary graphics > rendering chores, and in place of proprietary CUDA. It > would be tragic for security details to make 90+% of the > computational power of our machines available only for > sterile graphical rendering. > > If Vulkan could use a virtio-gpu backend, I guess this > might come out to much the same thing. But would it lack > access to GPU-specific optimizations implemented in e.g. > an AMD driver and made available via higher-level Vulkan > APIs not visible via virtio-gpu? Vulkan over virtio-gpu is possible in Mesa and virglrenderer as of about six months ago[1][2]. I don't know enough about Vulkan to comment on it as a virtualized interface in itself. [1]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5800 [2]: https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/412 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmGCdeAACgkQ+dvtSFmy ccAFXRAAn5hLOrwaEPF+yLsTy8bWop7AorTZyLVUXh8MJleitlmvkwmWBfQ3eafO Igic/4P3ZwYBhsA6yJswE8QXHYWzl3iE5Yhv3/k/LinM7pzDJ6Z+Sitvli9LeEwR cSCJJpOANk6oIissGUUEDd6fzYjx8t2ra+TwUccJx2xF4gZZ43CGGBjWjLg/CYXb k8ZnQtDUMkumbw3VkJIJuMj+Ih6vOc9Zk5TMEtiEpHcrRXWemcRHk8GZEdxrey5A fSsNhyXd3ABn2vIC7HvRDHVXao2T2mw53dG09/qT+aoOjx+zOFHKLYfJAdQqG7Z4 FDWnS9NoVGPMtiaREsU1+ZA64Pr7owwKF0d8zX3I67O8vbgB7+sfiiDdw4OcLqFT UvAzBZ91yGPN9RyuhWEIAqgv2xHj2SX3Nrbmg8K9/ZHdpa2PI2LUInWSpnRkqAoE Z8LX8dTGhxo93LgmxXYNKgFGWfClB98WofX3//S2UErPeAJ5nVMm5bKFxts87HSy dEkODdkvnZqbKX0GdXqiRKtNtxyrSUNkmNrlFIwKmz8FFmzlL8q7pskxFhGNsIi7 R/+3ZFLa4hTNVee5SDuPSeQ4OqUOPnW43XbDSEqkXvWFPkuKQBqDGhCzF/LOm2mF xQgXPISGA5nxL7IhW3Yac6JqYySJtfxxDhneWRzfVdNQa4RNLBc= =WzrB -----END PGP SIGNATURE----- --=-=-=--