Difference between revisions of "FAQ"

From Open-IOV
Jump to navigation Jump to search
m (2026-11-15 status refresh: DS stage image authored+live (st0=st1=020a0481; DS 0x86040626->0x84000420, two boots); draw-issue mac=0x22 and stores remain; X start lottery limits the run rate)
m (2026-11-15 (evening) status refresh: saved-window release carrier deterministic (c772), slot-34 census + SA[34] golden fill (0x265), release-window reorder landed but unexercised; the remaining blocker is call order; pack-completion lottery; DS 0x84000420 and stores remain)
Line 5: Line 5:
<blockquote>'''What this page is.''' The questions the project is asked most, answered honestly and with pointers to the maintained documents. Condensed from [https://git.vgpu.io/open-iov.git/tree/docs/09-reference/glossary-and-faq.md <code>../docs/09-reference/glossary-and-faq.md</code>]; the docs tree wins on disagreement.</blockquote>
<blockquote>'''What this page is.''' The questions the project is asked most, answered honestly and with pointers to the maintained documents. Condensed from [https://git.vgpu.io/open-iov.git/tree/docs/09-reference/glossary-and-faq.md <code>../docs/09-reference/glossary-and-faq.md</code>]; the docs tree wins on disagreement.</blockquote>


Status: 2026-11-15, tree <code>master @ 692a7eb0</code>.
Status: 2026-11-15, tree <code>master @ a03a68ea</code>.


== Project and positioning ==
== Project and positioning ==
Line 17: Line 17:
'''Why is <code>nvidia-smi</code> working but my CUDA kernel not running?''' It probably is running: guest CUDA kernels execute on the physical GPU and verify — the vector-add, matrix-multiply and transformer clients are green on fresh boots. If a specific workload fails, the known classes are: multi-megabyte staged transfers between guest and device memory (under repair, failure modes proven), and simultaneous CUDA guests (per-guest execution isolation is in progress). This is the project's known status, not a misconfiguration — see [[Project Status|<code>Project-Status.md</code>]] and [[The Execution Frontier|<code>Execution-Frontier.md</code>]].
'''Why is <code>nvidia-smi</code> working but my CUDA kernel not running?''' It probably is running: guest CUDA kernels execute on the physical GPU and verify — the vector-add, matrix-multiply and transformer clients are green on fresh boots. If a specific workload fails, the known classes are: multi-megabyte staged transfers between guest and device memory (under repair, failure modes proven), and simultaneous CUDA guests (per-guest execution isolation is in progress). This is the project's known status, not a misconfiguration — see [[Project Status|<code>Project-Status.md</code>]] and [[The Execution Frontier|<code>Execution-Frontier.md</code>]].


'''Can I run OpenGL or Vulkan applications in the guest?''' Partially, and it is an active frontier. The display/KMS stack and the X server run on the emulated vGPU with the stock driver: nvidia-modeset/NvKms registers (<code>/dev/dri</code>), the stock NVIDIA GLX path is fully green (<code>glxinfo -B</code> returns 0 with OpenGL 4.6.0 direct rendering; <code>glxgears</code> renders ~520 FPS), the 2D path is green and the DDX 3D replay executes. The '''first non-black GPU-rendered output''' is proven: a pbuffer probe returns <code>pixel=ff0000ff</code>, the off-screen path produced 500/500 non-black animated frames per run, and videos were captured (45.4 s on 2026-11-11, 50 s on 2026-11-12). GZDoom reaches <code>V_Init: allocate screen</code> with its GL 4.6.0 context on an even modeNum. The X DDX idle-DMA/ScreenInit, USERD-latch, re-probe, kernel-mode-spin and flip-event walls were closed (X green &gt;10 minutes), captured GL sections now execute on the engine, and the direct-GL submission is fully decoded: it carries no classic draw header (the work is macro-driven; data-block blobs plus small state pushes invoking MME macros), the recycled pushes are recovered, and the client's draw-state push opens, captures and reaches the engine. The MME chain now completes and executes the draw macro: multi-frame keep-windows land, the 2799-word pack completes, the first <code>MME-PACK-REARM</code> fires, the fixed-CB region is aliased, and <code>DRAW_IAB</code> (<code>mac=0x22</code>) runs with the SPH-BIND prelude intact and the DS stage VAs populated. The DS stage-0/1 image is now authored and live: a VTG SPH at <code>family+0x900</code> (first word <code>020a0481</code>) is fetched by both vertex slots (<code>st0=st1=020a0481</code>), and the DS value fell <code>0x86040626 -&gt; 0x84000420</code> (reproduced on two boots). Window and screen pixels are still the wall: the remaining DS bits are stage type/context (SPH5/SPH10/SPH18), the 728-B draw window's released macros (<code>0x33/0x39/0x1/0x0</code>) do not include the <code>DRAW_IAB</code> call, so the draw never stores, glxgears' window is black, and the per-boot binding plus X first-generation start lottery is the throughput limiter. The guest Vulkan pipeline runs end to end (device → command buffer → fence → readback) but frames are black. See [[OpenGL|<code>OpenGL.md</code>]], [[Vulkan|<code>Vulkan.md</code>]] and [[Graphics Execution|<code>Graphics-Execution.md</code>]].
'''Can I run OpenGL or Vulkan applications in the guest?''' Partially, and it is an active frontier. The display/KMS stack and the X server run on the emulated vGPU with the stock driver: nvidia-modeset/NvKms registers (<code>/dev/dri</code>), the stock NVIDIA GLX path is fully green (<code>glxinfo -B</code> returns 0 with OpenGL 4.6.0 direct rendering; <code>glxgears</code> renders ~520 FPS), the 2D path is green and the DDX 3D replay executes. The '''first non-black GPU-rendered output''' is proven: a pbuffer probe returns <code>pixel=ff0000ff</code>, the off-screen path produced 500/500 non-black animated frames per run, and videos were captured (45.4 s on 2026-11-11, 50 s on 2026-11-12). GZDoom reaches <code>V_Init: allocate screen</code> with its GL 4.6.0 context on an even modeNum. The X DDX idle-DMA/ScreenInit, USERD-latch, re-probe, kernel-mode-spin and flip-event walls were closed (X green &gt;10 minutes), captured GL sections now execute on the engine, and the direct-GL submission is fully decoded: it carries no classic draw header (the work is macro-driven; data-block blobs plus small state pushes invoking MME macros), the recycled pushes are recovered, and the client's draw-state push opens, captures and reaches the engine. The MME chain now completes and executes the draw macro: multi-frame keep-windows land, the 2799-word pack completes, the first <code>MME-PACK-REARM</code> fires, the fixed-CB region is aliased, and <code>DRAW_IAB</code> (<code>mac=0x22</code>) runs with the SPH-BIND prelude intact and the DS stage VAs populated. The DS stage-0/1 image is now authored and live: a VTG SPH at <code>family+0x900</code> (first word <code>020a0481</code>) is fetched by both vertex slots (<code>st0=st1=020a0481</code>), and the DS value fell <code>0x86040626 -&gt; 0x84000420</code> (reproduced on two boots). The release path is now host-deterministic when the pack completes (the saved-window release carrier replays the held window with the calls released; the held-CALL census plus the SA[34] golden fill prove <code>client=golden=used=0x265</code>). Window and screen pixels are still the wall: the blocker is call order (the 728-B window places the slot-34 <code>DRAW_IAB</code> call after the <code>0x33/0x39</code> setup, so the <code>0x39</code> DS latch <code>0x84000420</code> pre-empts it; the 324-B window places it first and ran <code>mac=0x22</code>), the reorder <code>a03a68ea</code> is landed but unexercised, pack completion is still a per-boot lottery, the DS stage type/context bits (SPH5/SPH10/SPH18) remain, so the draw never stores, glxgears' window is black, and the per-boot binding plus X first-generation start lottery is the throughput limiter. The guest Vulkan pipeline runs end to end (device → command buffer → fence → readback) but frames are black. See [[OpenGL|<code>OpenGL.md</code>]], [[Vulkan|<code>Vulkan.md</code>]] and [[Graphics Execution|<code>Graphics-Execution.md</code>]].


'''How fast is it?''' No published numbers yet. Kernel launches execute on the physical engine; what remains unmeasured is the project's own methodology — nothing ships as a performance claim without its measurements. The first scheduled measurement is the graphics target (60 fps sustained in one VM, no forcing).
'''How fast is it?''' No published numbers yet. Kernel launches execute on the physical engine; what remains unmeasured is the project's own methodology — nothing ships as a performance claim without its measurements. The first scheduled measurement is the graphics target (60 fps sustained in one VM, no forcing).

Revision as of 21:34, 15 November 2026

An absence of critical technical documentation has historically slowed growth and adoption of developer ecosystems for GPU virtualization.

This CC-BY-4.0 licensed content can either be used with attribution, or used as inspiration for new documentation, created by GPU vendors for public commercial distribution as developer documentation.

Where possible, this documentation will clearly label dates and versions of observed-but-not-guaranteed behaviour vs. vendor-documented stable interfaces/behaviour with guarantees of forward or backward compatibility.

FAQ

What this page is. The questions the project is asked most, answered honestly and with pointers to the maintained documents. Condensed from ../docs/09-reference/glossary-and-faq.md; the docs tree wins on disagreement.

Status: 2026-11-15, tree master @ a03a68ea.

Project and positioning

Is this a replacement for vLLM on bare metal? No. Continuous batching on a bare-metal host is the right answer for centralized inference, and it stays that way. Open-IOV is for compute inside guests: Linux and Windows CUDA, 3D, video, and secure edge isolation.

Does the guest driver need to be patched? No, and that is a hard project rule: no guest driver patches, no host driver patches, no firmware patches, no hypervisor patches. The guest runs the stock NVIDIA driver, unmodified.

Does the host driver need to be patched or replaced? No. In the standalone configuration the distribution driver owns the physical GPU and Open-IOV is an independent kernel module. Building NVIDIA's OpenRM modules from source is needed only for the native vGPU-management workflows, not for the QEMU/emulated path (Install-and-First-Run.md §2).

Why is nvidia-smi working but my CUDA kernel not running? It probably is running: guest CUDA kernels execute on the physical GPU and verify — the vector-add, matrix-multiply and transformer clients are green on fresh boots. If a specific workload fails, the known classes are: multi-megabyte staged transfers between guest and device memory (under repair, failure modes proven), and simultaneous CUDA guests (per-guest execution isolation is in progress). This is the project's known status, not a misconfiguration — see Project-Status.md and Execution-Frontier.md.

Can I run OpenGL or Vulkan applications in the guest? Partially, and it is an active frontier. The display/KMS stack and the X server run on the emulated vGPU with the stock driver: nvidia-modeset/NvKms registers (/dev/dri), the stock NVIDIA GLX path is fully green (glxinfo -B returns 0 with OpenGL 4.6.0 direct rendering; glxgears renders ~520 FPS), the 2D path is green and the DDX 3D replay executes. The first non-black GPU-rendered output is proven: a pbuffer probe returns pixel=ff0000ff, the off-screen path produced 500/500 non-black animated frames per run, and videos were captured (45.4 s on 2026-11-11, 50 s on 2026-11-12). GZDoom reaches V_Init: allocate screen with its GL 4.6.0 context on an even modeNum. The X DDX idle-DMA/ScreenInit, USERD-latch, re-probe, kernel-mode-spin and flip-event walls were closed (X green >10 minutes), captured GL sections now execute on the engine, and the direct-GL submission is fully decoded: it carries no classic draw header (the work is macro-driven; data-block blobs plus small state pushes invoking MME macros), the recycled pushes are recovered, and the client's draw-state push opens, captures and reaches the engine. The MME chain now completes and executes the draw macro: multi-frame keep-windows land, the 2799-word pack completes, the first MME-PACK-REARM fires, the fixed-CB region is aliased, and DRAW_IAB (mac=0x22) runs with the SPH-BIND prelude intact and the DS stage VAs populated. The DS stage-0/1 image is now authored and live: a VTG SPH at family+0x900 (first word 020a0481) is fetched by both vertex slots (st0=st1=020a0481), and the DS value fell 0x86040626 -> 0x84000420 (reproduced on two boots). The release path is now host-deterministic when the pack completes (the saved-window release carrier replays the held window with the calls released; the held-CALL census plus the SA[34] golden fill prove client=golden=used=0x265). Window and screen pixels are still the wall: the blocker is call order (the 728-B window places the slot-34 DRAW_IAB call after the 0x33/0x39 setup, so the 0x39 DS latch 0x84000420 pre-empts it; the 324-B window places it first and ran mac=0x22), the reorder a03a68ea is landed but unexercised, pack completion is still a per-boot lottery, the DS stage type/context bits (SPH5/SPH10/SPH18) remain, so the draw never stores, glxgears' window is black, and the per-boot binding plus X first-generation start lottery is the throughput limiter. The guest Vulkan pipeline runs end to end (device → command buffer → fence → readback) but frames are black. See OpenGL.md, Vulkan.md and Graphics-Execution.md.

How fast is it? No published numbers yet. Kernel launches execute on the physical engine; what remains unmeasured is the project's own methodology — nothing ships as a performance claim without its measurements. The first scheduled measurement is the graphics target (60 fps sustained in one VM, no forcing).

Compatibility

Will it support Windows guests? Yes, it is a target: same architecture, measured bring-up. No Windows guest has been booted on the emulated vGPU yet; the Windows/DirectX path (WDDM, nvlddmkm, Direct3D) is described on DirectX.md. Hardware-Software-Matrix.md lists the support ladder.

Can I run several VMs on one GPU? That is a core design goal: one mediated device per VM, IOMMU isolation, and explicit scheduling at the GPU's memory-management unit. Multi-tenant maturity depends on the scheduling and isolation work tracked in the project's known-unknowns document.

Does it support Xen / Qubes OS Air / Argo / OpenXT? Designed for them. The emulation core is hypervisor-independent by construction; the transport backends are on the roadmap. KVM/QEMU with VFIO mdev is the reference transport today.

What about MIG? MIG is a hardware partitioning mechanism; the project's scheduling policy can use it where available. It is part of the multi-tenancy work.

Which GPUs are supported? Turing TU104 is the reference platform. Other generations are targets or experimental combinations — see Hardware-Software-Matrix.md for the exact ladder and what each status means.

Legal and licensing

How is this legal / license-clean? Open-IOV's own code is BSD-3-Clause (GPL-2.0 for the kernel modules that link GPL-only kernel exports); NVIDIA's software is used unmodified and is not redistributed. The project interoperates with the interfaces rather than relicensing anything. Details: the repository LICENSE and the legal reference in docs/09-reference/.

Can my company use this commercially? Yes, under BSD-3-Clause (kernel modules GPL-2.0), with no fee. Co-development is welcome — see HAAEEP-and-Collaboration.md.

Contributing

Where do I report bugs or ask for help? Open an issue in the repository with a reproduction and the standard captures (host dmesg, guest dmesg, guest lspci -vvv, guest driver parameters). A reproduction plus logs is worth more than a description.

How do I contribute support for my GPU / driver / hypervisor? Start from Hardware-Software-Matrix.md and the portability workflow in the repository. The deliverable is a profile plus evidence from the project's evaluation ladder.

How do I debug the firmware side? The risc-v-gsp-rm-debugger workbench runs GSP firmware in a RISC-V virtual machine with hooks, watchpoints and recorded sessions — Riscv-GSP-RM-Debugger.md.