Files
reims-vgpu/docs
Anees Iqbal 3c47efc458 🐛 Relay by default the kinds that ended the process
DIES_BY_DEFAULT listed three runtime degradations that ended QEMU in
every mode: ReleasedCommandState, PrivateResourceOption and
HostDeallocatorDelayed. No Mac ends the process in any of them
(dgpu-oracle.md Q43 and Q44, new here, beside Q38):
- ReleasedCommandState: a record a kernel wrote naming a state released
  before the write runs that state's program on the M3 Max and the UHD
  Graphics 630, and fails its command buffer with a timeout on the Radeon
  Pro 5300M; the runtime runs nothing there. A record naming the ID the
  CPU set, which another state took before the GPU's write, runs the CPU's
  state, where the M3 Max and the 5300M run the state that took the ID.
  The death came on the runtime's scheduler thread, naming no command
  buffer, so the 5300M's failed command buffer is not ours to give.
- PrivateResourceOption: a guest's Private heap or indirect command
  buffer made with MTLResourceOptions bit 24 is made as without it. The
  M3 Max keeps the GPU's writes from such memory, a kernel's records
  included; the 5300M and the 630, which the x86-64 lane imitates, write
  it as without the bit.
- HostDeallocatorDelayed: the runtime delays a no-copy buffer's
  deallocator only for a release with no keep-alive, and every no-copy
  buffer and heap this platform makes gives one, so it is never
  announced here.

The accuracy ledger's rule is that a difference is logged and the
process runs on, ending only where Metal ends it or where an operation
cannot run at all. The list goes: each kind is relayed by default,
counted, its first line written, and dies in strict mode as every other
kind of DIES does. The runtime now announces them once per device by
default, as it does the rest of DIES. Each exact answer is the runtime's
to build (the program of an ID's last released holder kept, a record's
state told written by the GPU or set by the CPU, and the M3 Max's drop of
the GPU's writes into bit-24 memory).

answer.rs's PrivateResourceOption doc said the runtime announced no-copy
memory of the bit off macOS; at this pin it makes such memory over a
copy that drops the GPU's writes, unannounced.

Tests: the placement tests expect the three relayed by default and
dying in strict mode. New device tests reach each kind under the
default: an execution of a record a kernel wrote naming a state
released before the write (the command buffer completes with no error,
the command runs nothing, the kind is counted once and the device goes
on), a Private heap and an indirect command buffer of bit 24 (made, the
GPU's write landing, counted once), and a release whose import another
buffer holds (the deallocator runs at the release, nothing announced).
A test-only process-wide relaxed mode covers notices on the runtime's
own threads, sound under nextest's one process per test.

For the guest and the host: a run that meets one of these kinds goes on,
where it ended before. The guest sees the command run nothing or run the
state the CPU set, or the resource made as without bit 24; the host sees
the kind's line once and its count.
2026-11-14 16:35:04 -08:00
..