A writable twin of read-only pages was made only for a surface's read-only
alias, and a file of zeros only for an alias's block past its ranges: both
went with the host-OS surfaces, which no production path has made since
110b53637. So import_view loses its twin argument, and with it the twins'
map (shown_at), their mappings in the views' budget, the notwin refusal and
its trace record. Read-only pages are given to the runtime as they are, and
the views' gate refuses them, so the runtime copies them, as before.
The dma-buf sources lose their files of zeros (Zeros), which only those
blocks' pages took, and the budget's claims their reach, as only a twin
reached into the headroom. An import's pages are made once, so its record
says whether that import is still being made rather than how many are. The
remap, budget, vm, files and host_ram docs, qemu.md, lessons.md,
architecture.md and conventions.md no longer describe the twins, the
stand-in or the IOSurface memory the library held; the measured facts about
what a remap under an import reads stay in remap.rs. ResourceAddressRange,
which only the surface aliases gathered, goes.
Nothing the guest or host observes changes, as no production path has made
an OS surface since 110b53637.
Every process's ring-0 answers, the present answers and the display's events
share the one control completion ring. When it had no room, a VBLANK was
dropped silently (the guest sees no event for that refresh) and the posts that
waited left no trace, so no boot could say whether the ring ever filled.
The device now tells its host of each kind (Host::ring_degraded,
RingDegradation): a full spell at its first post that found no room, a post
that waited once it goes on, and a dropped VBLANK. It logs each kind's first
at warn, which the library's logger writes once per kind and counts after.
reims-vgpu counts them by code (answer::count_kind) into the degradation
counts line: control-ring-full, control-ring-post-waited, vblank-dropped.
Diagnostics only: what the guest sees is unchanged.
The bundle's os_log lines go to a subsystem of their own since the change
before the sets. conventions.md names it beside the bundle's once-a-kind
logging, with what its NSLog lines keep, and the lesson on the unread
counter says what read it on 26.7.2 and 27.0.1, and that a probe of the
counter reads a resource's answers once its buffer is scheduled.
logonce's guest part landed with batch4 (beb91ccd4, f064fbf69): the kexts
log a repeatable failure once a boot per kind, the Metal bundle once a
process, and their summaries at most once a minute. Add that to the rule's
list beside the library's and QEMU's.
The library now writes each kind of warning once and counts the rest,
and writes every degradation's count at each reset of the device and at
the exit. The conventions say so, with the two lines a check reads the
counts from: "reims-vgpu: degradation counts: <code> <n>, ..." and the
logger's "lines repeated since the last count: ...", and that no line at
info fires on a per-event path.
The rule kept reims-vgpu-core still for the Metal product, which is deleted.
With the Vulkan platform the library's only one, core changes as the work
needs, under the same checks as the rest; the owner dropped the rule.
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.
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.