The cutdel branch deletes VulkanPlatform, metal2vulkan-runtime and the rt
feature, so RtPlatform over metal2vulkan-rt is the only platform. These
docs still described the old one: its answer policies, its exact
switches, MoltenVK on the Mac, its in-place guest memory, its records
cache, its device recovery and its Metal-answer tests.
- conventions.md: the guest-memory-in-place rule is replaced by the rt
rule (rt allocates GPU memory, the device maps its blocks into the
guest, textures sync at the guest's events, and there is one VkDevice
per process). The degradation codes are now rt-unbuilt and rt-refused,
and the deleted codes are dropped.
- accuracy-ledger.md: restated for rt, which has no switches. It keeps
the device's own arithmetic notes (tagged as measured before rt), the
19 unbuilt pieces and rt's refusal kinds, and device loss.
- api.md, README.md: REIMS_VGPU_EXACT, _CENSUS_DIR and _TRACE_DEGRADE
are gone, and STRICT now covers running out of memory only. The let-go
and the quiesce describe one platform.
- architecture.md, development.md, testing.md, qemu.md: KosmicKrisp in
place of MoltenVK; RtPlatform, rt_window and RtBlocks in place of
VulkanPlatform, the old window sink and HostBlocks; no Metal-answer
comparisons and no opt-in GPU-fault tests.
- lessons.md: the four lessons about deleted code only (the Metal
comparison after MoltenVK, the runtime's shadows, device recovery and
the in-place check) are dropped. The lessons that still bind mark
their deleted names.
- video/vaapi.md, graphics-kext/design.md: the GPU plane copy and the
compositor mirror are marked as gone.
- AGENTS.md: only the Vulkan platform's "Where things are" row changes.
The arm64e set, guest/prebuilt-arm64e, joins guest/prebuilt among the committed
outputs, with what writes it (make -C guest prebuilt-arm64e) and what checks it
(prebuilt-check, which cargo xtask check runs), and the guest/ row of the checks
asks for both sets. design.md records why the arm64e kext has its own Graft
declaration and Info.plist, and the owner's call on the arm64 display: an
IOMobileFramebufferLegacy subclass, since an arm64 WindowServer drives no
IOFramebuffer. qemu.md's arm64 boot check names the set's kexts for Ambrosia's
config bundle and what a pass still needs.
reims-vgpu-core is folded into reims-vgpu-vulkan, so the docs, the
manifests' comments and the crate descriptions that named the crate name
its module now: the crate lists and graph, seven crates, core's files under
crates/reims-vgpu-vulkan/src/core, the testkit feature, and what the x86-64
leg runs. The design note that put the decoder in core says where it is,
reims-vgpu's graphics::decode, and the path of a deleted file goes. The
kache measurement keeps the crate's name, as it was measured then.
The crate that holds the reims-graphics device's wire and transport now
carries the library's prefix, as reims-vgpu-video does: its directory is
crates/reims-vgpu-graphics, its package reims-vgpu-graphics, and its Rust
path and log target reims_vgpu_graphics. The guest's, the option ROM's and
Ambrosia's Makefiles include the wire header from the new directory, and the
prebuilt records name it there.
Nothing changes for the guest or the host. The device keeps its name
(reims-graphics, QEMU's reims-graphics-pci, PCI 1234:5247), and the wire
header keeps its file name and RGFX_ symbols. The C API header is unchanged,
and the prebuilt kexts and option ROM are byte-identical; only the records'
paths and source hashes move. A log filter names the crate's lines by its
new target (REIMS_VGPU_LOG=info,reims_vgpu_graphics=trace), a diagnostic.
The Metal platform is gone (the commit before): AGENTS.md, README.md and the
docs now say the library carries out the guest's calls on the Vulkan
platform, on Linux and on a Mac over MoltenVK for development and tests;
that the display's shaders live in the Vulkan crate; that `cargo xtask
dist` writes target/dist-vulkan on every OS; and that the tests of the
Vulkan platform compare with Metal's recorded answers. architecture.md's
section 4.6 describes the answer layer and the macOS message layer in
place of the metal crate's. conventions.md keeps "core changes as little as
the Vulkan and Linux work allows" without its reason, the Metal product.
testing.md was the behaviour-lock suite's specification and the paravirt
guest ABI; it now says how the code is tested and keeps the Tags convention.
development.md's layout, tests and commands, conventions.md's examples and
the lessons and accuracy-ledger entries that cited the paravirt device, its
FIFOs or QEMU sections that are gone now describe the code there is.
Since 4c0248b29 the Vulkan platform answers a library the runtime refuses for
a gap with the refusal as its NSError, and such a function nil, where it used
to die. Core took the library's NSError as Metal's own refusal of the IR, so
the function was nil to Metal, and the state naming it then ended the process
one create later, as Metal aborts at a descriptor with no vertex or compute
function: on apple-gfx, any translation gap an app's library hit still ended
QEMU (the WebGPU code-30 and Godot bitreverse deaths of 11-03). A function
nil for a gap reached the registration's assert instead.
What changes for the guest and the host, on the Vulkan platform: a library or
function the platform refuses for a gap now raises the function lookup's
failure, as IR over a page-table hole does (8e4c8bc45). The state that names
it is never made, so the exec or info that names the state faults, as where
the platform refuses the state itself for a gap. Nothing is cached, so each
lookup asks the platform again. Metal never refuses there, so the Metal
platform, the suite and the pins see nothing new: Metal's own refusal of the
IR is still nil to Metal, and Metal's nil function still reaches the assert.
The platform tells core: core's platform::device::note_relayed_gap, which the
Vulkan platform's relay_gap calls on the creator's thread, and
relaying_gaps, which core reads it with around the library and function
creators. FakePlatform's Step::Gap scripts it.
a_state_naming_a_function_refused_for_a_gap_is_never_made locks the pattern
for the compute, render and tile forms.
A function whose IR the task could not copy was handed to Metal as nil, so a
pipeline naming it ended the host's process inside Metal ("Metal aborts at a
render descriptor with no vertex function"), isolated tasks included. On an
x86-64 macOS 26 guest, Safari's WebGPU renderBundles sample ended QEMU this
way, right after an info indirect (69). The guest commits a buffer's pages
to the task's page table as it prepares a command buffer that lists the
buffer, and every stream that names a pipeline lists its functions' IR
buffers (read from the guest's Metal driver), so IR over a hole is IR the
guest has not mapped yet.
What changes for the guest and the host: IR over a hole in the task's page
table now raises the function lookup's failure ("function lookup failed"),
as an empty entry's lookup already does, so the exec or info faults and the
guest restarts the channel, where the host's process used to end. Nothing
is cached, so a lookup after the guest maps the IR makes the function. IR
the task cannot otherwise copy (past the task's end, or ending at it) is
still nil to Metal, as Apple's framework answers it. Whether the boot's
failed copy was a hole is for the next boot's log to say: the previous
commit makes it name the reason.
The suite's mutgap_svc_function_over_hole locks it; its records follow.
Both docs had picked up history, and docs/qemu.md had grown into a journal:
dated measurement blocks, the commits and builds each figure was taken at,
and the story of how each hang or death was hunted. A reader needs what
holds now.
docs/testing.md:
- Cut: which macOS builds the suite's host ran and when its files were
dropped, a dated suite run, the run tallies behind the determinism and
exclusive-scenario rules, a probe's raw values, and an Apple blob's size.
Each now states its conclusion once, with its tag and the host that makes
it checkable.
- Corrected to match QEMU: apple-gfx-iosurface-pci also drives the IOSurface
host device and passes 8-byte accesses whole, and apple-gfx-pci isolates a
task when its guest's mapper has a descriptor table, so it does not always
run tasks in-process. The runner's MMIO row no longer explains itself by
what QEMU did before, the environment list names REIMS_VGPU_TRACE, and a
pytest wrapper that does not exist is gone.
- Facts said twice now live in one place, with a pointer from the other: a
fresh device's registers (4.2), the EFI frame as a view (6.22), the debug
layer's assert (6.21), the heap reply's descriptor bit (6.10), the W3
recovery (6.7), and the runner's 32-bit IOSurface access (3.1).
- interplay_fifo_timeout_report_mismatch_dies no longer quotes 7.4 as "read,
not yet locked": the row has been measured by that very scenario. A
docstring is not hashed into the expected files.
docs/qemu.md:
- Cut: the measurement dates and the reims-vgpu, metal2vulkan and QEMU
builds behind them; table rows and notes naming QEMU commits that the
squashes and reverts left out of vendor/qemu's history (the table now
names only commits in it, with one note for the replaced and reverted
ones); the qtest and paused-realize logs, kept as the facts they showed;
the lists of what was tried and was not the cause; and repeated facts,
among them the density list policy.rs holds and the shadow-copy
explanation video/bugs.md holds. Evidence lists fold into their
conclusions, each marked measured with its host and guest.
- Corrected: the build's configure line gains --enable-gnutls, as the
Makefile has it, and apple-gfx calls 21 of the header's 47 functions, not
35.
- reims-ctl's command-line notes no longer cite docs/qemu.md for how long a
core dump with guest RAM takes; that doc has never covered core dumps.
No rule, contract statement, ABI fact, kept behaviour, device contract,
procedure, host requirement or run instruction changed. Every section number
and title other files cite is kept and still says what they cite it for; the
4K-on-780M section keeps the tables and method that video/bugs.md's B73
points to.
Source: 501010f72 2d5eb81dd d261c89d4 2d25dc1e8
A compute indirect command buffer's write-back (SynchronizeResources 53, and
the eviction at suspend) wrote every threadgroup memory length at the
layout's lengths offset, and sized its strides cursor by the descriptor's
vertex bind count. Apple's GPU task service on macOS 27.0.1 (read:
synchronizeIndirectComputeCommandBuffer) writes each length to its own word
and takes one stride a kernel bind, as prepare reads them, so testing.md
7.1's stride quirk is not Apple's on this release and leaves the list.
For the guest: a written-back compute command holds each threadgroup length
in its own word, and lengths that run past the command end the write-back
there; a dynamic-stride command holds a stride for each kernel bind,
whatever its vertex bind count. The expected files of icb_evict, icb_sync,
icb_sync_errors and mutgap_tex_icb_sync_more (26A434) are recorded again,
with the scenarios and generated inputs that make them.
Source: 03bcf248f 85b938f3c
- The root task's allocator rounded sizes and block ends with wrapping
arithmetic, so a request near 2^64 could take a block it never held. Such
a request now fails and changes nothing; no guest or host reaches it
today, as every root-task mapping is at most 2^32 bytes.
- Two FIFOs of one in-process task binding a resource's guest pages at once
could each make a transfer buffer, and the second store released the
first. Apple's framework keeps the overwritten buffer (read in macOS
27.0.1's ParavirtualizedGraphics), and now every kind keeps it too.
- The IOSurface device lookup that the mapper service and the video and
scaler devices make on their own threads retained the device, so a host's
last release during a lookup left the teardown to the lookup's thread. The
lookup now never retains the device.
- A test pins the hang of an EFI display ending a display as Apple's
framework's own, and three docs say what the code does.
For the host, under those races alone: it gets no unmap of the overwritten
transfer buffer, the GPU VAs placed after it are numbered after it, and its
last release of an IOSurface device always runs the teardown on its own
thread.
Source: 26e0df468 e3babe69d c855160f3 18f681533 31a47a52b befc42c4a 15790979b
9c62ee575 022e74743
The suite's host has been the M3 Max on macOS 27.0.1 (26A434) since
2026-10-13, and every behaviour change since was recorded there alone. The
1361 expected files keyed AppleM3Max-40c-25G229 (macOS 26.7), last written
on 2026-10-11, describe a library that no longer exists, and no host runs
25G229 to record them again, so they go. A host on another build records
its files with make bless, as after any OS update.
README.md, docs/testing.md and tests/suite/README.md name 26A434's key, and
testing.md says which build each scenario's measurements were made on.
Nothing the suite runs or compares on this host changes.
Source: f958e21c6
An x86-64 macOS guest running Apple's arm64 GPU driver, ported, needs the
IOSurface host device vmapple has as apple-gfx-mmio's second region: the
driver's start waits for its mapper's service, and every texture over an
IOSurface is a mapper texture. reims-ctl now gives every x86-64 VM on
reims-vgpu that device, with no opt-in, and Apple's own x86-64 driver keeps
running as before.
For the guest:
- apple-gfx-iosurface-pci (106b:eeef, ours) sits at 00:06.0 next to the GPU
at 00:04.0: its registers in BAR 0 at 0x1000, 8-byte accesses passed
whole, one MSI vector per completed command. A reset returns its
registers to 0, ring size aside.
- 0x1028 offers the second, 0x400-byte descriptor form only where its table
holds all 8192 mapping ids (16 KiB pages); on x86-64's 4 KiB pages it
reads 0, and the guest's mapper takes the first form, which fills them.
- On apple-gfx-pci, a task other than task 0 runs isolated only if the
IOSurface device has a descriptor table when the guest defines it, and
device info offers argument buffers (key 33 bit 0x20, key 42) only while
it has one. Apple's x86-64 driver, stock (binary version 6) or patched by
reims-util (245), never programs the IOSurface device and makes ref
textures whose backing is in task 0, which an isolated task does not
serve (testing.md 6.20); its tasks stay in process and its device info
is as without isolation. The ported driver's mapper programs the device
before its GPU driver starts, and its tasks run isolated, which its info
replies need. apple-gfx-mmio still isolates every task.
For the host:
- apple-gfx-pci has no option for this: adding apple-gfx-iosurface-pci is
the only switch, and a VM without it runs as before. Its gpu link is
optional, the machine's only apple-gfx-pci when unset. vendor/qemu moves
to bd95509a.
- RvgDeviceConfig gains process_isolation_follows_guest at its end (64
bytes; a host that passes 56 reads it false), and the Rust API's
DeviceConfig the same field; apple-gfx-pci always sets it with
use_iosurface_mapper and process_isolation. Each task made under it logs
whether it runs isolated or in process, and device info logs each change
of its argument-buffer answer.
- reims-ctl's q35-x86_64 profile adds
apple-gfx-iosurface-pci,id=iosfc,gpu=gfx,addr=0x6; vmware-svga and
vmapple VMs are unchanged. reims-ctl and QEMU from this commit go
together, as its installer installs them.
- On Linux, the detach heap's temporary and a writable alias with zeros
past its pages come from a range of a file of the library's own, so the
Vulkan platform can alias and import them; QEMU no longer ends at an
x86-64 guest's first such heap. macOS is unchanged.
- The first command given to a task whose service has died writes one
warning naming the task.
- scripts/qtest_iosurface_pci.py checks the device under qtest (27 checks).
Checked: cargo xtask check and the suite on the M3 Max; reims-ctl's install
and a cold boot on um780; stock, reims-util and ported-driver guests booted
on gem10 and ms01 with the isolation rule, Apple's driver's tasks in
process at about 62 fps, the port's isolated.
A guest empties a task's object list when the process that owns it ends,
without waiting for the execs that process queued. On an x86-64 macOS 26
guest the icon services abort as they start (Metal's nil device
architecture, docs/qemu.md), and the host, still compiling pipelines for
earlier execs, reaches their last execs after the lists are gone. Most
lookups then fail and fault the exec, but two answered nil where nil ends
the process:
- A pipeline descriptor's function: Metal aborts on a render descriptor
with no vertex function, and QEMU died at Setup Assistant on a new
install (2 of 10 boots on an RTX 5080 Laptop GPU host). A function whose
entry is empty now raises the function lookup's failure.
- A resource named by UseResources in a concurrent compute encoder, where
Metal ends the process at a nil entry. Such a reference whose entry is
empty now raises too. Serial encoders, barriers and the render lists
keep the nil, which Metal skips.
The Vulkan platform ended the process at a nil entry of
useResources:count:usage:stages:, which nothing had measured on Metal.
Metal skips it (measured here), and so does the platform now.
reims-ctl adds dump-guest-core=off to the q35 machine on Linux hosts. With
guest RAM in the core, a crash took QEMU 26 s to go away (a 2.7 GB core)
while its window stayed frozen; with the option, 1 to 4 s. QEMU refuses
the option on macOS, so the vmapple command line is unchanged.
What the guest and host observe: an exec whose pipeline function, or whose
concurrent UseResources reference, has an empty entry faults instead of
ending the process. interplay_lifetime_held_pipeline_function_retyped is
recorded again; interplay_lifetime_emptied_resource and
interplay_lifetime_emptied_resource_render are new. Six boots of the new
install to Setup Assistant on the fixed builds kept QEMU alive, though
none reached an empty function entry. docs/qemu.md records the race's
measurements and why no value the host answers avoids the nil
architecture.
The README now speaks to people running VMs through reims-ctl. The repository
layout, the tests and the Rust library's crates, commands, profiles and
features move to docs/development.md, which the README's Developing section,
AGENTS.md and the docs that cited those sections now point to. The QEMU and VM
section is gone (docs/qemu.md covers it), as are History, whose tags AGENTS.md
now names itself, and the interoperability note under Legal.
This repository now holds libreims_vgpu, a Rust library that is the host
side of the paravirtualized GPU macOS guests drive, in place of Apple's
ParavirtualizedGraphics.framework: the library and its C API
(reims_vgpu.h), the PCI device's option ROM, QEMU's apple-gfx on that API
(vendor/qemu), the behaviour-lock suite that drives the C API as QEMU
does, and reims-ctl, the VM manager users run. README.md says what it is
and how it is laid out, and AGENTS.md how to change it.
Every file of the earlier tree is replaced. vendor/qemu moves to the
steelbrain/reims-vgpu branch of the same public repository.