The planner keeps newSharedTextureWithHandle:withResourceIndex: open on
the list: it stays unsupported, as the device picks every resource id
itself, but it is not counted as settled.
The bundle now makes shared textures, their handles and the textures
opened from them, so a run that logs any of the three as unsupported
again is red. The withResourceIndex: twin stays unsupported on purpose:
the device picks every resource id itself.
A nil the guest bundle answers itself never reaches the host's degradation
counts: the image viewer's 3D window stayed white while every host count read
clean, because the bundle answered newSharedTextureWithDescriptor: with nil.
scripts/internal/guest-unsupported.py reads a run's guest logs for the
bundle's "RGFX: unsupported:" lines and checks each selector against
guest-unsupported-expected.tsv, where each line is deliberate, open or fixed,
with the day it was last seen and the tree checked. An unlisted selector, or a
fixed one seen again, fails the run. Nothing changes for the guest or the host.
potluck's dispatch returns only once its job's workspace starts, and a client
that gives up waiting has usually queued the job anyway, so a call of the
script again sent the build and the tests a second time. Each job now goes
with a potluck key: the commit, the packages, the tests' arguments and
MINIBASE, and for the tests the build's job too, so a second identical call
returns the jobs the first queued. KEY names another key, for a run again of
jobs that ended.
Owner 2905: closing the window to close the window should show a
confirmation. A close the person asks for (the close button, Alt+F4 or the
compositor's close, the taskbar's close, and on macOS the red button, the
menu's or the Dock's Quit, and an uncaptured ⌘Q while capture is on) cut the
VM's power at once: QEMU's handler powers it off with no ACPI.
What the person at the host now sees: while the VM runs, the close first
lets every key and button go in the guest, ends any capture, and asks in
the OS's own dialog over the window: "Turn off the VM?", "The VM turns off
at once, as if its power were cut. Unsaved work in it is lost.", with Turn
Off (destructive) and Cancel, the default for Return and Escape. Turn Off
does what a close did before. Cancel leaves the VM running and nothing held
in the guest. On Linux and Windows it is SDL's message box (zenity or X11's
own on Linux, a task dialog owned by the window on Windows), run on the
windows' UI thread; on macOS an NSAlert sheet on the window, which Quit
shows once, over the key window, for every window. With capture off, ⌘Q is
the guest's, and the menu's Quit and the close button ask.
Nothing asks where nothing is lost: once the host has been told, while the
device is released or QEMU quits, without a close callback, or where the OS
shows no dialog, in which case the close goes ahead as before. There is no
setting and no "don't ask again".
The decision stays in the window crate (close.rs), so the C API keeps its
shape (only the header's words for close change) and QEMU's handler is
unchanged: the close callback now comes after Turn Off. features.md's
Leaving entries carry the new behaviour and its guards.
features.md's "Capture off" entry has a manual check on a boot; the macOS
walk gets a fourth boot with REIMS_VGPU_WINDOW_CAPTURE=0 whose steps check
the title, the free pointer, the keys and the window's resizing, and that
the menu's Quit ends the VM, since ⌘Q is then the guest's.
mini-base.sh's seed had a mode for a tree without the base's commit, such as
another repository's: it counted every tracked file as changed and reused only
the dependencies' units. It was never run, and the one such tree on the machine
gains nothing from it. metal2vulkan's Windows jobs build with the gnullvm-host
rustc of the pinned nightly and RUSTFLAGS='--cfg m2v_gpu', into target/gpucfg,
while the base is built by the msvc-host rustc with no such flag, so none of
the base's units match theirs. Such a tree now gets a fresh build, and the seed
says why.
windows-tests.sh's build job on homelab-mac-mini-2018 compiled every crate and
SDL3's CMake build from nothing in each new workspace: 560 s for the library's
tests at a48b3984af (m3-max-60885), for a commit that changed a few files.
The job now first copies the target/ of a base workspace that the harness keeps
there, a build of development (scripts/internal/mini-base.sh seed). On ReFS,
robocopy clones it without copying data: 5.7 GB and 6592 files in 2 s, taking
41 MiB. The seed then fixes up the copy for the job's tree:
- unchanged tracked files get an old mtime, and changed ones the current time,
so cargo rebuilds only what changed since the base's commit;
- packages whose units name the base's workspace, or whose sources bake in a
path that cargo sets but does not track (env!("CARGO_MANIFEST_DIR") and the
like), are dropped and rebuilt;
- build scripts' output that names the base's workspace is rewritten to name
the job's.
A seeded job that fails says so in its last lines, naming the base, so a lane
can tell a seed fault from a compile error. MINIBASE=0 builds without the seed,
and where no base is published the build is the same as before.
windows-tests.sh reserved 20 GiB for the tests' job, its commit charge's limit
on Windows, and the tests have outgrown it: runs peaked at 14.7 to 18.1 GiB,
then one at 20.7 GiB (m3-max-56017), and a job that reserved 20 was ended over
memory at 20.1 GiB (m3-max-61085). The default is now 26, 1.25 times the
largest peak, as the merge harness's Windows legs already reserve; the
script's header says why. AGENTS.md's Windows row gave a 12.3 GiB peak of
reims-vgpu and reims-vgpu-c's tests, and now gives the measured peaks and the
reservation.
The bundle now names read-only anonymous memory unchanging where its maximum
protection has no write, the kernel answers it SM_PRIVATE at a shadow depth of
0, and mach_vm_page_info's VM_PAGE_INFO_BASIC answers its object's count as 1
at depth 0 with the region's object id (kRgfxAnonymousPrivate). The kext takes
such a block (kRgfxPagesSoleHolder, 1 << 3, where it sets
kRgfxKextFeatureSoleHolderPages, 1 << 20) and marks its SURFACE_PAGES
RGFX_SURFACE_PAGES_UNCHANGING without COPY_ON_WRITE, so the host reads its
pages once, as the view is imported. On P2's guest (macOS 26.7.2, the Windows
mini) the 4K block over such memory was copied whole at each commit that used
it.
A wire holds no reference, so the count leaves out wires for writing taken
while the memory was writable. The kext knows its own: it refuses the block
(kIOReturnNotPermitted) where, once its pages are wired, a writable block of
its own in the table or an in-place surface block covers a page of them, or a
block of writable memory is being made (writableMakes), and the bundle then
asks a read-only block, why RGFX_PAGES_WHY_REFUSED. The check sorts the
block's runs and walks every writable wire's segments under contextLock, once
per such make. What is left is a write another driver started before the app
removed write for good, still landing after the make.
The clause is on for every guest kernel, with no release gate. The facts it
rests on, read in xnu's published source at each tag from macOS 11.0.1 to
26.5, osfmk/vm/ lines:
xnu- cnt pid rid fake prot upl clamp iopl walk id
7195.50.7.100.1 19154 19264 14459 19126 6172 6459 17037 9030 14915 1209
7195.60.75 19074 19184 14406 19046 6156 6459 16984 9030 14862 1209
7195.81.3 19074 19184 14413 19046 6157 6459 16984 9030 14869 1209
7195.101.1 19119 19229 14290 19091 5915 6457 17020 9010 14749 1190
7195.121.3 19158 19268 14329 19130 5916 6457 17059 9010 14788 1190
7195.141.2 19158 19268 14329 19130 5916 6517 17059 9070 14788 1190
8019.41.5 19330 19440 14493 19302 6007 6551 17227 9137 14952 1190
8019.61.5 19330 19440 14493 19302 6007 6551 17227 9137 14952 1190
8019.80.24 19330 19440 14493 19302 6007 6551 17227 9137 14952 1190
8020.101.4 19330 19440 14501 19302 6003 6543 17247 9143 14960 1188
8020.121.3 18885 18995 14245 18857 5918 6541 16960 9131 14704 1168
8020.140.41 18945 19055 14305 18917 5909 6542 17019 9135 14771 1168
8792.41.9 19527 19637 14780 19499 5939 6701 17519 9294 15246 1166
8792.61.2 19538 19648 14791 19510 5939 6753 17530 9346 15257 1167
8792.81.2 19538 19648 14791 19510 5939 6753 17530 9346 15257 1167
8796.101.5 19669 19779 14872 19641 5926 6750 17650 9273 15338 1164
8796.121.2 19669 19779 14872 19641 5926 6750 17650 9273 15338 1164
8796.141.3 19738 19848 14911 19710 5940 6774 17695 9297 15377 1164
10002.1.13 19897 20007 15074 19869 6032 6791 17854 9316 15540 1163
10002.41.9 19910 20020 15087 19882 6032 6771 17867 9296 15553 1165
10002.61.3 19910 20020 15087 19882 6032 6771 17867 9296 15553 1167
10002.81.5 20023 20133 15121 19995 6041 6771 17980 9296 15587 1167
10063.101.15 20254 20364 15180 20226 6098 6774 18210 9299 15646 1355
10063.121.3 20357 20467 15247 20329 6123 6774 18308 9299 15714 1355
10063.141.1 20359 20469 15249 20331 6125 6774 18310 9299 15716 1355
11215.1.10 20139 20249 14984 20111 5692 6843 18096 8188 15442 771i
11215.41.3 20139 20249 14984 20111 5692 6843 18096 8188 15442 771i
11215.61.5 20501 20611 15230 20472 5759 6817 18384 8162 15693 765i
11215.81.4 20507 20617 15236 20478 5765 6817 18390 8162 15699 765i
11417.101.15 20646 20756 15393 20617 5804 6766 18487 8111 15856 765i
11417.121.6 20694 20804 15441 20665 5843 6781 18535 8129 15904 766i
11417.140.69 20703 20813 15449 20674 5841 6777 18546 8124 15913 766i
12377.1.9 20960 21070 15518 20931 5974 6988 18734 8331 16004 776i
12377.41.6 22004 22114 16433 21975 6174 7198 19709 8562 16933 807i
12377.61.12 22037 22147 16463 22008 6204 7203 19742 8567 16963 808i
12377.81.4 22109 22219 16534 22080 6275 7209 19813 8573 17034 808i
12377.101.15 18688 18805 13571 18677 5743 7659 16128 8765 14068 824i
12377.121.6 18686 18803 13569 18675 5722 7659 16126 8765 14066 824i
cnt vm_map.c, vm_map_page_range_info_internal: the top object's count,
less the query's own reference to 12377.81.4, read before it after
pid there: the id, VM_KERNEL_ADDRPERM to 10063.101.15, ADDRHASH after
rid vm_map.c, vm_map_region_recurse_64: the region's id, VM_OBJECT_ID
id vm_object.h (i: vm_object_internal.h): VM_OBJECT_ID, the low 32 bits
of pid's macro in each tag
fake vm_map_page_range_info_internal: a footprint query's count of 1 and
an id of no object (task_self_region_footprint)
prot vm_map.c, vm_map_protect (its preflight from 12377.101.15): no
protection the maximum lacks
upl vm_pageout.c, vm_map_create_upl: no write UPL where the entry's
protection lacks write; from 12377.1.9 through vme_allows_upl_write,
whose test is at 6786, 6986, 6991, 6997, 7413 and 7413
clamp vm_map.c, vm_map_remap_extract: a share's maximum is the source's at
most, which memory entries take through vm_map_copy_extract
iopl vm_pageout.c, vm_object_iopl_request: the UPL keeps the object with
no reference of its own
walk vm_map.c, vm_map_region_walk: the count less one while paging, so
the share mode alone leaves it in doubt
Later releases are checked by test: guest/bundle/tools/sole_holder_probe.c,
which the lane gate's info phase (item sole-holder) and Ambrosia's
check-boot.sh (check sole-holder) run on each guest they boot, reads the count
as 2 with a memory entry or a second mapping holding the memory and 1 once it
goes, sees a footprint query answered otherwise, the kext's writable wire of
memory whose maximum lacks write refused, a sole holder's block made, and
refused while a writable block of the kext's covers it. A release where it
fails is a red leg. The kext's tests cover the wiring and the runs' sort and
search, and the bundle's a sole holder's block named and refused.
Moves both metal2vulkan revs from d83fb05624 to 82e7c39216, 65 commits on its
development branch, named green by its checks (m3-max-59311). The runtime's
crate takes its published name there (9a1c8fe6dc): metal2vulkan-rt 0.0.0 is
now metal2vulkan-runtime 0.2.0, its library metal2vulkan_runtime. The
dependency key, the crate's paths (each still `as rt`), the lock's entry and
the docs, comments, log lines and scripts that named the crate follow it. The
rename changes no API.
On rt:
- A command buffer waiting for a shared event's value whose signal is
submitted is Scheduled as it is submitted (4730af16e7): its scheduled
handlers run on the submit thread then, and its queue's later command
buffers are no longer held behind it. A wait for a value that neither the
host set nor a submitted signal promises stays held, Committed, as before
(counted in Metrics::event_holds, fb4b77048c). GPU order and completion are
unchanged. The docs that said rt's completion thread runs a held command
buffer's scheduled handlers now say its submit thread does.
- Copies over buffers are tracked by the memory a buffer lies in, never its
id (7e38a29b69): a texture over one buffer sees a draw through a texture
over another buffer over the same bytes, in one command buffer and across
a held group.
- A kernel that reads buffers through an argument buffer's pointer members,
or through a gpuAddress the CPU wrote into a constant buffer, now makes
(3cdca62567, c0403a1c98); the translator refused it (IdentityDomains).
- A refused kernel input names its kind (98895eb6d2, 1c26e1dc54):
Gap::KernelInput { kind }, so the refusal's text, in the log and in the
NSError's description, carries the kind. It is still counted as
KernelInput.
- Memory goes back sooner. The release of a texture or block that an unsent
upload holds sends the upload at once (0277c68696). A texture longer than
a 16 MiB block has its block to itself and gives it back at its release
(61949e8ba4). Every free of device memory on a normal path is made by the
block-maker thread, and counted against the submits it meets (4c808ffa6d,
09735ad792). New gauges tell texture blocks apart from the consumer's
Private takes (b3f6c859dd).
- ComputePipelineState::dispatch_variant, the key of the VkPipeline a dispatch
runs (82e7c39216), which this tree does not call yet.
- The translator's old path is deleted (0b94d919d9 to 16c831165d): its
profile comes from Vulkan queries alone, with no policy switches and no
driver-fact tables. SEMANTICS_VERSION goes from 2201 to 2203 and
RUNTIME_VERSION from 2540 to 2541, so rt's shader and pipeline caches miss
once: the first run on each host translates its pipelines again.
The rest is metal2vulkan's own: its conformance declarations and ledger, its
generated documents and the tests of each change. The NSError texts the guest
receives, and the comments of the wire header and the guest's sources that the
prebuilt kext sets and the option ROM record, keep the old name here; commits
of their own change them.
RtPlatform, over metal2vulkan-rt, has been the library's platform since the
`rt` feature went on by default; VulkanPlatform, over metal2vulkan-runtime,
built only without it. This deletes VulkanPlatform, every module only it
used, the metal2vulkan-runtime dependency, and the `rt` feature with its cfg
arms in reims-vgpu-vulkan, reims-vgpu and reims-vgpu-c. Every handle was
already made on RtPlatform, so neither the guest nor the host sees a change;
the C header, QEMU, the guest's sets, the ROM and reims-ctl are untouched.
The tests of the deleted code go with it. The on_vulkan tests that held the
old platform now hold rt. The 15 that rt fails are ignored, each with the gap
rt names: texture buffers, a texture over a buffer or an IOSurface plane, a
rasterization rate map, visibility result modes, a kernel's stage input,
tessellation, a buffer of 0 bytes, a texture at the guest's resource ID, and
the guest's class, which rt is not told.
.config/nextest.toml drops the overrides of the deleted tests, and
lane-gate.sh reads the pin from metal2vulkan-rt's line.
Lanes ran the Windows tests through scripts of their own, each relearning
the mini's traps: the gnullvm target links with MSYS2 CLANG64's clang, SDL3
builds with CMake and Ninja there, a Windows machine takes only jobs that ask
for windows, and the build must not hold the GPU. The script dispatches the
tests' build and then the tests in its workspace, holding the UHD 630, waits
for both and prints the summary, with the check's tested features of the
crates it runs.
vendor/qemu's move to upstream QEMU of 2026-11-13 brings 432b3f70, which
renames pcie-root-port's experimental x-speed and x-width properties to
speed and width and keeps no alias. reims-ctl's command still named the
old ones, so every VM's QEMU refused the root port and exited at once
("Property 'pcie-root-port.x-width' not found"), as the 5080 boot of
b157365a1 showed. The installer builds QEMU with reims-ctl, so both move
together. The lane gate's launch script follows.
run_vmapple.sh booted a Virtualization.framework guest on vmapple with
apple-gfx and AVPBooter, all three gone: make qemu builds no aarch64 QEMU,
apple-gfx left the library and QEMU, and AVPBooter no longer boots on
vmapple's layout. vm_drive.py ran its tours through it, and vm_ocr.swift
served vm_drive.py alone. The window's walk, their last user, boots on
Ambrosia since ea18b7f17; arm64 guests boot as docs/qemu.md, "arm64
guests", says.
The manual walk of the macOS window booted its guests through
run_vmapple.sh, on apple-gfx and AVPBooter, which are gone (AVPBooter no
longer boots on vmapple's layout), so it could not run. Its steps M1, M2, M3
and M5 described apple-gfx's offered modes, its resolution=host and
@ppi forms and its display-modes property, and cited policy:: tests deleted
with it; its rates came from REIMS_VGPU_STATS lines nothing logs now.
The walk now boots an arm64 guest with reims-graphics-pci on Ambrosia under
HVF, as firmware/ambrosia/check-boot.sh does (AMBROSIA, BUNDLE, QEMU; clones
of the guest's disks), with the library's window open. The guest's rate is
read from the display's flips (reims_vgpu::graphics::shown at debug). The
steps say what the device's display does today: the guest is offered one
mode, the window's pixels, so M1 and M2 read that mode and its rate, P5 and
P7 see the guest take each new window size, P6 the window keep its size
through the boot's mode changes, P8 the guest stay a pixel per screen pixel,
and M3 the window open for resolution=2560x1600. M4 and M5, a guest mode
the window follows and display-modes, have no counterpart on this device
and are gone. features.md's entries and guards are unchanged.
Safari 16.6 on macOS 13.7.8 opens connections to the page server that it
sends no request on, and keeps one open for about 30 s. webgl-serve.pl read
its connections one at a time, so it waited on such a connection while the
page's own requests, its result among them, queued behind it. In a 13.7.8
guest, a page server of this kind held a connection of WebKit's Networking
process with no request on it, while eight more connections had their
requests waiting unread (netstat, lsof: m3-max-15745). A curl of the server
from the guest's shell timed out, and every queued request was answered once
Safari quit.
The gate's webgl phase on 13.7.8 took 35 s with this server, against a 60 s
limit, and 6 s with the new one, both passing (m3-max-15757). The appwalk
harness's page server, which reads its connections the same way, waits 20 s
for the result and reported none. 11.7.11 and 12.7.6 (Safari 14.1.3 and
15.6.1) passed the same check.
Each connection now gets a child of its own. The first child that brings a
result writes it under another name, links it to RESULT and tells the parent,
which ends the children still open and exits 0. The timeout still exits 1.
Graft 0.2.0 reports a bound consumer as waiting for "a provider of personality
<names>" or with its "activation gate open on a provider of personality
<name>", where 0.1.0 named the device and its nub. It finds ReimsGraphics among
the placed kexts by its manifest, opens the gate on each nub a personality's
provider matching matches, and on arm64e starts the libraries the manifest
declares. The design doc, prebuilt.py's comment on the staged personalities
and the lane gate's comment on graft-bind now say so; the lane gate's check
already matches the new wording.
No line at info may fire per present, frame, ring message or other
per-event path. Measured on development: an arm64 macOS 27.0.1 boot
logged 1326 lines, 867 of them the display's change of IOSurface at
WindowServer's presents and 396 library lookups; an x86 macOS 26.7.2 boot
on the 780M logged 3248, 1296 and 349.
- The display's change between IOSurfaces, each library lookup, each
shared event named or made from another process's, and each queue made
unshared are debug lines, the first, second and last under targets of
their own that the lane gate's and check-boot's runs name at debug:
reims_vgpu::graphics::shown (msi-drag.py times composites by it),
::library (msi-boot.sh's launch gaps) and ::queues (its count). The
display's change between the scanout and a surface stays at info.
- reims-vgpu-graphics' lines of a reset and a context's close, which
reims-vgpu's own repeat with what they let go of, are debug; its line of
completion records handed over, once a second, is info the first time.
- The surface order's and the IOSurface views' summaries come at most
once a minute, not at every 4096th command buffer or 256th
SURFACE_PAGES; check-boot.sh reads the caches' count up to a minute old.
- A long wait's end, a CPU wait's end or its cut at a reset, and a
newLibraryWithData: of bytes Metal refuses too are debug; the CPU wait's
lines lose the runs of spaces their strings held.
- A fold at the views' budget, and the video arms' first picture of each
way, frame of each outcome and reason of each fallback, are info once
per process (their kind), not once per session.
A warn or error line says a fallback, a refusal or a failure, and the
library wrote one at every event that met its cause: a refused pipeline at
each create, a broken ring at each post, a swapchain's failure at each
frame, a CUDA call's at each frame's drop. Each degradation is to be said
once per boot and then counted.
The library's logger now writes the first line of each kind at its level
and each later one at debug, counting it. A kind is the call site and,
where the site reports more than one cause, the class of the cause it
names as a `kind` key-value (`kind:% = error`): its text up to its first
digit, quote or `;`, so a refusal's id, a raise's selector, a Vulkan
result or a CUDA error tells kinds apart and a size or an address does
not. A site with one cause names none. An info line that names a kind is
said once per kind too. The first 256 kinds are told apart, the rest
counted together. `write_repeats` writes the count at info: "lines
repeated since the last count: <n> more of <file>:<line>[ [<kind>]]
(<target>: <the first line>); ...". The `log` crate's `kv` feature
carries the key-value.
The display sink's own first-refusal flag goes: the logger keeps one per
kind of refusal. msi-boot.sh counts ICB_SLOTS refusals from the first
lines and the logger's counts, as the later ones are debug lines now.
Every build, test, boot and copy on the shared machines has run as a
potluck job since 11-05, and the job's lease is the lock: --gpu holds a
GPU, --exclusive gives a timing run the whole machine. gpu-locks.sh and
metal2vulkan's maclock took lock files potluck never sees, so a run under
them could still share a GPU with a potluck job.
AGENTS.md, the boot section of docs/qemu.md, the video checks, the cost
benches' docs and the oracle README now name potluck's lease. The
conformance scripts take no lock of their own, and lane-gate runs its
tests under its job's lease. A build holds no GPU: it builds in a job
without --gpu, and the tests run in the same workspace holding one.
Graft 0.1.0 (commit bb884fe, release zip sha256 2bea380e) is Graft's first
public release: bundle id ai.aneesiqbal.graft, serving only
ai.aneesiqbal.ReimsGraphics and ai.aneesiqbal.RgfxGate, with a C++17 SDK tool,
graft-kext, that consumer.mk builds from source with Xcode's clang++ in place
of the Python SDK. Its zip, copied by its own tools/vendor.py with the record
of all 156 files, puts Graft's source tree, the two kexts and the SDK in
guest/graft; the kexts sit at guest/graft/Graft.kext and Graft-arm64e.kext,
with no built/ any more, so the set's staging, its Graft check and the lane
gate read them there. The only binaries are the two kexts. AGENTS.md now says
guest/graft is Graft's release as vendor.py copies it.
RgfxGate depends on ai.aneesiqbal.graft 0.1.0, Graft's compatible version.
Graft hands an arm64e route's original back as a void * holds a function
pointer, discriminator 0, so RgfxGate keeps each AMFI original in a void * and
converts it to its mpo type at the call, which re-signs it; a typed variable
written through a void ** would authenticate with the type's discriminator and
fault. The static_asserts on the wrappers' discriminators stay. Graft's kernel
side refuses by name where it could have panicked, among them an arm64e AMFI
slot not signed with its operation's discriminator and a donor table that
differs from the live vtable.
set-check checks the prelinked collection with graft-kext check-prelinked,
which takes prelink.py's arguments and exit codes. Graft reports a bound
consumer as "bound: imports and vtables committed;" and either waiting for the
device or "activation gate open on the device nub"; the lane gate's graft-bind
passes only on the open gate, since only then does IOKit start ReimsGraphics.
Graft's own id moves in stage-config.py and docs/qemu.md, check-boot marks a
panic report naming ai.aneesiqbal as ours, and msi-appload posts its
measurement notification under the new prefix.
The prebuilt sets are rebuilt from these sources in their own commit.
The owner moves our reverse-DNS names from com.steelbrain to ai.aneesiqbal,
keeping each name's last part: ReimsGraphics, RgfxGate and the Metal bundle
(reims-graphics) take the new prefix. Graft 0.1.0 pins these new consumer ids
and refuses the old ones, so this lands with its adoption. What the guest sees
changes with it: the kexts' bundle ids, the Graft gate property
(ai.aneesiqbal.ReimsGraphics.graft-bound) and the registry root's
GraftClient.ai.aneesiqbal.* keys. The boot checks match the new names.
The prebuilt sets are rebuilt in the adoption batch, on Graft 0.1.0.
On macOS's bash, 3.2, a script that stops at an unset variable under set -u
exits 0 where an EXIT trap is set, and $? is 0 inside the trap too, so a check
that aborted read as a pass (measured: the same script exits 1 with no trap).
payload_test.sh showed it; seven more scripts pair set -u with an EXIT trap:
check-boot.sh, check-imports.sh, walk_window_macos.sh, opencore-add-kexts.sh,
ship-commit.sh, msi-boot.sh and msi-image.sh.
Each now keeps an ended flag, set at each deliberate success end, and its trap
does its cleanup as before, then turns an exit 0 short of that end into 1 and
keeps any other status. payload_test.sh takes the same form in place of the
trap its last fix removed, so it cleans its scratch on an abort again.
Graft 1.0.0 is its first release. It reorganizes the repository: the built
kext moves from dist/ to built/, and the header, start glue and build rules
move under sdk/. It also binds an absent weak import to the pointer
gOSKextUnresolved holds, and verifies an imports-only provider through an
anchor class, which kextvers needs for macOS 11 and 12.
Point the guest build, the OpenCore link check, the lane gate and the
design doc at the new paths, and rebuild guest/prebuilt from them.
On 11 to 13 the set would load where nothing of ours loads today, and those
releases are not ready: 12 crash-loops WindowServer on the display pipe's
completion layout, 13.7.8 draws a black wallpaper, and on 11 the host refuses
Metal libraries. OpenCore now injects Graft, ReimsGraphics and RgfxGate from
Darwin 23 on, so 11 to 13 boot plain, as they do today.
MIN_KERNEL in guest/tools/prebuilt.py is the one place that decides it, and
each older release joins in its own commit once its row passes. Graft itself
still checks no version.
lane-gate built the old loader and its shims for each candidate ReimsGraphics
from a separate builder, and its guest check read the loader's log; neither
exists with the set on Graft. The gate now ships the set as guest/'s build
stages it (Graft, ReimsGraphics, RgfxGate), its image carries exactly those
three, and graft-bind reads GraftClient.com.steelbrain.ReimsGraphics from the
registry root. msi-image.sh refuses a base image that still lists another kext,
such as Lilu or the old loader, which `reims-ctl update-opencore` makes again.
The Mac's kext check runs guest/'s set-check in place of the shim link check.
opencore-add-kexts.sh gives added kexts no kernel range, as the set has none,
and takes an image with no Kernel > Add entries, which reims-util now makes
for a VM on another device.
The guest kexts move from Lilu and the loader onto Graft, our own kext that
binds ReimsGraphics against the System KC by name and routes RgfxGate's hooks.
As agreed with Graft's session, reims-vgpu carries a copy of Graft's committed
build, header, start glue and consumer build rules, made by Graft's
tools/vendor.py at Graft 9ac50f6, with source.toml recording that commit and
each file's SHA-256. The set's build and prebuilt check use it from the next
commit on.
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 Vulkan crate is the library's only platform since the Metal platform
went, and every crate that links core links the Vulkan crate too, so core
needs no crate of its own. Its files move unchanged under
reims_vgpu_vulkan::core (crate::core in the Vulkan crate), the module the
video crate's layout already uses; its #[macro_export] macros stay at the
crate's root, so reims_vgpu_core::metal_check! is reims_vgpu_vulkan's now.
core's lint set is the module's inner attributes, as it was the crate's.
Nothing the guest or the host observes changes, and reims_vgpu.h is the
same. Core's log lines name reims_vgpu_vulkan::core:: as their target in
place of reims_vgpu_core::, so reims-ctl's example filter says so.
The testkit feature is the Vulkan crate's, reims-vgpu-vulkan/testkit, and
the crate's integration tests turn it on through a dev-dependency on the
crate itself, as core's dependents turned core's on. core's tests keep
their paths below core:: in the Vulkan crate's unit tests, and cargo xtask
check's x86_64-apple-darwin leg runs those alone: -p reims-vgpu-vulkan
--lib -E 'test(/^core::/)'. The tests that run themselves again in a child
name themselves below core:: too (a child given a name that matches no
test runs nothing and passes), and the memory map's tests take the lines
of the targets below reims_vgpu_vulkan::core::memory.
The macOS test that declares _exit now declares it safe, as the testkit
does: rustc's clashing_extern_declarations compares the declarations
within one crate.
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 lane gate's host-video table came from vulkaninfo's video profiles. The
host's video stopped using Vulkan Video when it was deleted: it is VA-API's
and NVDEC's. The table now lists each GPU vulkaninfo names, found by its PCI
address, with the decode profiles vainfo lists on its render node. On an
NVIDIA GPU the profiles are the ones nvidia-probe finds NVDEC decodes: H.264
Baseline, Main and High at 8-bit 4:2:0, and HEVC Main and Main 10.
msi-build.sh builds nvidia-probe, and the job and the publish step copy it
beside QEMU.
qtest_iosurface_pci.py checked apple-gfx-iosurface-pci, the paravirt IOSurface
device, through QEMU's qtest accelerator. The device is gone from QEMU and the
library, so nothing the script starts exists.
vendor/qemu's eb36a099 removes apple-gfx (PCI and vmapple's MMIO device),
the IOSurface device, the paravirtual VideoToolbox and M2 scaler devices and
the KVM dirty source only apple-gfx gave the library. reims-graphics-pci is
QEMU's only device on the library, and calls only its rvg_graphics_device_*
functions and rvg_status_message. vmapple is no longer built: its display
was apple-gfx-mmio.
QEMU's option that finds the library is now --enable-reims-vgpu, not
--enable-pvg, upstream's name for Apple's framework, so its callers change
with it: install-ctl.sh's and the lane gate's configure lines, and make
qemu. make qemu now builds qemu-system-x86_64, the guest reims-graphics-pci
serves, configures again over a build an earlier make qemu configured for
aarch64 or with --enable-pvg, and no longer checks for ReimsVgpu.rom, the
option ROM QEMU installed for apple-gfx-pci. make vm, which booted a vmapple
guest, goes.
The suite drove apple-gfx's C API as QEMU did and recorded what the paravirt
device did; the owner's ruling deletes apple-gfx and everything of it, the
suite with it, so make test, bless and coverage go too.
Its shader fixtures are the platforms', the graphics device's and the guest
bundle's tests too: they move to tests/shaders. guest/bundle's Makefile, an
input of the prebuilt kexts, still names tests/suite/fixtures/shaders, which
stays as a link to tests/shaders until the kexts are next built. A worktree
no longer clones the suite's 257 MiB, so new-worktree.sh adds it plainly.
Shared guest disks saved with Setup Assistant's MiniBuddy panes unseen
bring them up over the desktop at every boot of a copy, as loginwindow
launches MiniBuddy while the user's com.apple.loginwindow MiniBuddyLaunch
is true for the host. Boot harnesses run this script in the guest over
SSH before their workload. It ends a running MiniBuddy, deletes the key
for any host and from the host's ByHost file (deleted for any host alone,
the key still launched MiniBuddy after a reboot), waits for the files to
drop it, and says when the guest must reboot to log in without the pane.
guest/loader's ReimsGraphicsLoader keeps its log in its own service's
LoaderLog property; the gate's loader is still the older
AppleParavirtGPULoader, with ApvLoadLog. The loader-bind check now reads
whichever of the two the guest runs.
A boot that times nothing need not hold the whole host. probe-batch.sh's
--shared and lane-gate.sh's --shared-boot dispatch the job with the 5080
alone (no --exclusive), so other jobs' builds can run beside it once its
run.sh's 180 s wait for them ends. The bench boot keeps the whole host.
HMP's pmemsave read "SIZE /path" as one expression, SIZE divided by the
path, and answered "invalid char" with no file written, so every hang
snapshot's scanout failed with FileNotFoundError. QMP's pmemsave takes the
path as its own argument and reports a failure as an error.
The hang catcher counted a restart only 120 s after the last one, so car
12's round B, whose four system_resets came 80 s apart, logged two. One
restart's resets and banners come within 10 s, so 30 s now joins them.
The gate's run log now says, for each result it brings back, whether it came
from the job's --keep or, the job having brought none, from the workspace by
potluck cp. Car 13's run is the first to use --keep, and its log shows which.
potluck 0.1.1's --keep copies a job's files back when it ends, in place of
the potluck cp from its held workspace afterwards. The gate's build job keeps
lg-out/steps and lg-out/msi-build.txt, each boot keeps lg-out/MODE, and
pl-job.sh keeps results/. Where a job brought back none (one that ended
without its keep), each falls back to potluck cp from the workspace, which
the gate holds for its boots anyway.
A QEMU hook starts with QEMU and waits for its probe's MARK in
PROBE_RESULTS/NAME/stdout, which msi-probes.sh replaced only at the probe's
start. A probe run before under the same name left its MARK there, so the
hook went on at once, before the guest was up, and the probe's start then
removed everything the hook wrote (round 20261105-111520: c13-mission-c11
ran its four segments into nothing and timed out). msi-round.sh now removes
each of the round's probes' old results before the boot; every earlier round
keeps its own copy in R/probe-results.
A probe round's guest payload carried only bench, so a host hook driving
msi-drag.py in one (c13-mission's Mission Control segments) found no
~/lane-gate/winmon: every segment read moved=0, "no TextEdit or Finder
window to lay out" (round 20261105-104754). probe-batch.sh now ships the
gate run's winmon beside bench where the run has one, and msi-round.sh
copies all it ships into the round's payload.
A Mission Control drag's composites_s alone does not tell a display held to
60 Hz from boot-to-boot noise. The share of the gaps inside its animations
that are under 12.5 ms (an update one 120 Hz refresh after the one before)
does, in one boot: car 12's boot reads 2% and its bench 4%
(mission-cadence.py over its launch.log), where older cars read 24-40%.
msi-drag.py writes it on the mission line as short_gap_pct, the same measure
as c13-mission's mission-cadence.py, and report.py shows it in the
drag.mission row and records it as drag.mission.short_gap_pct.
6b1ecb8d0 counts a drag's qemu_cpu from QEMU's own utime+stime and its
gfx_cpu from each graphics thread's last reading, where the rule before
counted nothing of a thread born or gone inside the window. The gate kept
comparing the two: car 12's report read Mission Control's gfx_cpu as 13.1%
against car 11's 1.7% (+671%), where every run of the new rule reads 12.8 to
13.5% on every tip (f6e1ef077 twice, 6f8118d14, 4f4dd6cc7, c9e12d30c,
7a0aa80a9 twice) and the old one read 1.4 to 4.3%.
msi-drag.py now writes cpu_rule=2 on each line, and report.py shows a drag's
qemu_cpu or gfx_cpu row against a baseline of another rule as not
comparable, either leg's. A line with no cpu_rule is rule 2 where the run's
drag tool is 6b1ecb8d0's (9ea504722f4bdd50), else rule 1. The update counts
and gaps did not change with the rule and are compared as before: a drag
tool hash alone would have hidden car 12's Mission Control drop.
On one scale: an old run's qemu_cpu on rule 2 is cpu.txt's QEMU utime+stime
over the drag's 10 s (a whole number of Control-Up periods for Mission
Control); on the new rule's runs that reads within 2% of the column (one
within 9%). An old run's gfx_cpu has no such record: it stays rule 1.
PROBE_RESULTS/NAME is replaced by the next round's probe of the same name, so
back-to-back rounds of one probe (the game_6000 controls, c13-raf-rate on our
lane and then on stock) lost the earlier run's stdout. msi-probes.sh now
copies each probe's results to R/probe-results/NAME as well.
The guest's login shell is zsh, whose builtin log takes no arguments, so the
c12-s1 stream ended at once with "too many arguments" and restarted every
half second. s1-base's round on cd46a4e00 caught no guest line.
c13-paravirt-perf's profile hook lives with that lane: --bin FILE puts it
beside the gate's host scripts as {DIR}/bin/NAME, and --after now gets the
round's directory for {DIR} as a --qemu-hook does.