AMDGPU VirtIO Native Context Merged: Native AMD Driver Support Within Guest VMs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • phoronix
    Administrator
    • Jan 2007
    • 67385

    AMDGPU VirtIO Native Context Merged: Native AMD Driver Support Within Guest VMs

    Phoronix: AMDGPU VirtIO Native Context Merged: Native AMD Driver Support Within Guest VMs

    An exciting change was just merged into Mesa 25.0 that has been about two years in the making... AMDGPU native context support for VirtIO to allow for using native OpenGL and Vulkan graphics drivers within guest virtual machines for better performance...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
  • oleid
    Senior Member
    • Sep 2007
    • 2523

    #2
    This MR implements native context support for amdgpu: this enables to use native drivers (radeonsi, radeonsi_drv_video and radv) in a guest VM (QEMU+kvm is the only supported setup currently).

    With the current protocol Unigine Heaven and Superposition are more or less running at 99% the host speed.
    This is huge! Congrats to everybody who was involved!

    Comment

    • pWe00Iri3e7Z9lHOX2Qx
      Senior Member
      • Jul 2020
      • 1601

      #3
      Praise Jebus (and everyone who worked on this)!
      Last edited by pWe00Iri3e7Z9lHOX2Qx; 16 January 2025, 02:29 PM.

      Comment

      • loganj
        Senior Member
        • Nov 2017
        • 608

        #4
        nice. will gpu be available to the host? or u need 2 gpu (maybe igpu and dgpu)

        Comment

        • nazar-pc
          Phoronix Member
          • Jan 2014
          • 108

          #5
          I still hope they just enable standard SR-IOV support on consumer GPUs at some point

          Comment

          • hetzbh
            Junior Member
            • Dec 2014
            • 21

            #6
            Out of curiosity, how's the display output works? Based on the link and comments .. using X forwarding? it's not clear...

            Comment

            • TheTrueColonel
              Junior Member
              • Nov 2024
              • 5

              #7
              I'm not super knowledgeable about virtualization, but does this mean non-passthrough VM will get a performance boost? Or is this just relevant when you're passing the GPU to the VM?

              Comment

              • joaquinvacas
                Junior Member
                • Nov 2022
                • 37

                #8
                So... Is this an amdgpu/drm/mesa level (on the guest side) or more something like GVT-g was (transparent for the guest)

                I virtualize Windows for my work and wish to have GPU acceleration.

                Comment

                • leandrolnh
                  Junior Member
                  • May 2015
                  • 6

                  #9
                  Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite


                  This article and the links in there should clarify a bit more about native context.

                  Comment

                  • DumbFsck
                    Senior Member
                    • Dec 2023
                    • 341

                    #10
                    Originally posted by nazar-pc View Post
                    I still hope they just enable standard SR-IOV support on consumer GPUs at some point
                    +1‎
                    ‎‎‎‎‎‎‎‎‎‎
                    ‎‎

                    Comment

                    Working...
                    X