Files
reims-vgpu/docs
Anees Iqbal df8f36bc9b 🐛 Answer a device the host's driver refuses as no device
A Vulkan device the host's driver refused at its make
(VK_ERROR_INITIALIZATION_FAILED and the other Vulkan failures, its memory run
out, or its device lost) ended the process at MTLCreateSystemDefaultDevice()
with a fatal line. It is the same class as a host with no Vulkan device, which
the library already answers: the platform makes none, and the graphics device's
create refuses.

Measured on an RTX 2080 behind a Thunderbolt 3 link (driver 620.70.06), whose
BAR1 is 256 MiB: each device maps 67 MiB of it, and 8 processes making a device
at once had 4 to 6 of them refused with -3 (NVRM: "dmaAllocMapping_GM107: can't
alloc VA space for mapping"). The refusals come from makes that race: with other
processes' live devices holding 245 of BAR1's 256 MiB, or seven devices of 16
queues each, a QEMU's device was still made, taking about 5 MiB. A QEMU whose
device the driver refused died at its realize.

What the host observes: rvg_graphics_device_create answers
RVG_ERR_HOST_RESOURCES where the driver refuses the device, as it does where the
host has no device, instead of the process dying; the library logs an error line
naming the refusal first. RVG_ERR_HOST_RESOURCES's message, which QEMU's realize
error prints, now reads "the host refused memory, a pipe, a thread or a GPU
device", and the header and docs/api.md name the GPU device among its causes.
The guest sees nothing: no device is realized either way. No degradation kind
changes.
2026-11-11 08:23:42 -08:00
..