general high-level discussion about spectrum
 help / color / mirror / Atom feed
From: Nathan Myers <ncm@cantrip.org>
To: discuss@spectrum-os.org
Subject: Re: GPU virtualization in Spectrum
Date: Wed, 27 Oct 2021 23:44:59 -0400	[thread overview]
Message-ID: <ad543687-0ee1-f671-456e-937cad062026@cantrip.org> (raw)
In-Reply-To: <20211026200434.w6yzfnl6duhqjgig@x220.qyliss.net>

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?

  reply	other threads:[~2021-10-28  3:45 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 [this message]
2021-11-03 11:43   ` Alyssa Ross

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=ad543687-0ee1-f671-456e-937cad062026@cantrip.org \
    --to=ncm@cantrip.org \
    --cc=discuss@spectrum-os.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).