general high-level discussion about spectrum
 help / color / mirror / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Nathan Myers <ncm@cantrip.org>, discuss@spectrum-os.org
Subject: Re: GPU virtualization in Spectrum
Date: Wed, 03 Nov 2021 11:43:27 +0000	[thread overview]
Message-ID: <87lf25tqg0.fsf@alyssa.is> (raw)
In-Reply-To: <ad543687-0ee1-f671-456e-937cad062026@cantrip.org>

[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

Nathan Myers <ncm@cantrip.org> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2021-11-03 11:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-26 20:04 GPU virtualization in Spectrum Alyssa Ross
2021-10-28  3:44 ` Nathan Myers
2021-11-03 11:43   ` Alyssa Ross [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf25tqg0.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=discuss@spectrum-os.org \
    --cc=ncm@cantrip.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).