The job held continue-on-error until it had a green baseline. With its two
known failures expected by name, it reads green, and a failure it meets now is
a new one, which fails the run as every other job's does.
(cherry picked from commit bb91f5f234b87e4e86898d676f901d669fcb7353)
A job red on every run hides the next real red. The lavapipe job's two failures
in every run so far are known: a CPU device's host buffers inside the contexts'
range, and format 94 one LSB apart. A list names them, each under its reason,
and the job runs every other device test, which must pass, then each of the two
alone, which must fail. A third failure, or one of the two passing, fails the
job, which reads green at 622 passed and 2 failing as expected. nextest has no
expected failures of its own, so a script makes the two runs and reads nextest's
exit codes (100: a test failed; 4: the filter took no test). continue-on-error
stays until a run shows the job green this way.
(cherry picked from commit dac6b70fda20a1404a008c46300134e2e63e9984)
docs/development.md gains a CI section: the jobs of .github/workflows/ci.yml,
the ci profile that leaves the device tests to lavapipe and the lab, what stays
in the lab, the cache bound, and the first green run's cold times (run
47245616506) beside the lab's warm figures.
(cherry picked from commit bd93b39f1454c087e29c3c6cd74d566685893e86)
On the macos-26 runner, cargo xtask check ran past an hour in the first run,
over the hour a CI job may take. cargo xtask check takes --lints, every step
but the tests, and --tests, the tests alone (on a Mac with the test binaries'
links and core's tests under Rosetta); with neither it runs every step, as
before. CI's macOS check is two jobs, one for each half, each building on its
own runner.
(cherry picked from commit e82e4f90654997b27b4e616eb467dd5a0a9b3fb1)
Does what PR 130 asked for: one command for the checks of reims-ctl, whose
workspace cargo xtask check does not reach. PR 130 routed it through the
library's xtask, which builds in the library's workspace and so fetches
metal2vulkan, that reims-ctl's workspace is kept apart from, and it ran
neither reims-restore's workspace nor the Windows clippy, the one check on
the Mac or Linux that sees a break of their Windows build (docs/lessons.md).
`make check-ctl` runs, by each workspace's own manifest, in crates/reims-ctl
and in crates/reims-restore (a workspace of its own, with reims-apfs):
rustfmt, clippy, clippy for x86_64-pc-windows-gnullvm with MinGW's gcc and ar
for ring's C, and the tests, clippy with -D warnings and each with
--workspace; the cheapest first, stopping at the first failure. Where
x86_64-w64-mingw32-gcc or -ar is not on the PATH it says so and fails before
any step, never skipping the Windows clippy; on Windows itself the host's
clippy is that check, and it says so. The Makefile's header,
docs/development.md and AGENTS.md's reims-ctl row (now naming reims-restore
too) name the target, and the lesson on reims-ctl's Windows build says what
it catches.
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.
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.
On the desktop, the device's lanes walk WindowServer's command buffers at
about 120 us per render encoder on a Zen 4 host, and the walk is bound by
instruction fetch: the code it runs is spread over far more 4 KiB pages
than the L2 iTLB holds. Placing that code in the order lld's call-graph
clustering gives it, from a profile of the desktop, makes the walk faster.
Linux's dist now reads crates/reims-vgpu-c/link-order.txt, the library's
functions one a line as GNU nm -C prints them without crate
disambiguators, and in the objcopy call that localizes the archive's object
renames each listed function's section to .text.sorted.NNNNNN in the
list's order. GNU ld's default script sorts those by name ahead of the
rest of .text, so make qemu and install-ctl.sh's QEMU get the order with
the compiler's default linker; a linker that does not sort them keeps the
order it had. dist prints how many of the list's functions it placed: a
function no longer in the archive is skipped, so a stale list loses speed
and never fails the build. The list survives a metal2vulkan pin move,
whose crates change only their disambiguators.
cargo xtask link-order BINARY CALL_GRAPH (Linux) writes the list from a
QEMU lld linked with --call-graph-ordering-file, after this tree's dist;
docs/development.md, "The link order", says how to refresh it. With no
list the archive is as before.
AGENTS.md's table and its row for reims-ctl's checks, the layouts in
architecture.md and development.md, and qemu.md's opening now name
scripts/install.ps1, Windows' installer, beside install-ctl.sh, which it runs
in MSYS2's CLANG64 shell.
The kc-check runs against x86-64 11.7.11 for both 11 and 12. That holds for
IOHIDDevice: 12.7.6's defines every name 11.7.11's does and lacks the same ones
(measured on the guests' collections, 2026-11-16). It does not hold for every
class: 12.7.6's collection drops some names 11.7.11 defines. None of them is
one the sets import today, but a set that starts importing from another class
needs a run on 12.7.6 as well.
Neither make -C guest test nor prebuilt-check links a kext against a kernel,
and set-check needs OpenCore's TestKextInject and covers only the x86-64 set.
So the guest's mouse (21632b275) shipped imports that x86-64 11 and 12 and
arm64 14 and 15 lack, and the merge boots, x86-64 26.7.2 and arm64 26 only,
did not see it.
guest/tools/kc-imports.py takes a guest's kernel collection and a set. It
reads the KC raw, or as an arm64 guest's IMG4, whose LZFSE payload it decodes
with compression_tool. It then fails on each name a kext imports that neither
the collection nor an earlier kext of the set defines, which is the rule
Ambrosia's linker refuses by. An x86-64 kext imports its undefined external
symbols; an arm64e kext imports the names its chained fixups bind, so an
import that Graft binds at run time is not counted. make -C guest kc-check
KC=... KC64=... runs it on guest/prebuilt and guest/prebuilt-arm64e.
It runs on a Mac after a set rebuild, against the oldest release of each set
(x86-64 11.7.11's Boot KC, arm64 14.6.1's kernelcache) and the newest. The
collections are copied out of the guests and kept local: nothing taken from
them is committed. docs/development.md, Testing, says where each one lives.
Against development's sets it named the six IOHIDDevice methods on x86-64
11.7.11 and 12.7.6, and didTerminate alone on x86-64 13.7.8 to 15.8.2 and
arm64 14.6.1 and 15.6.1. Against the fixed sets every import resolves on
x86-64 11.7.11 to 26.7.2 and arm64 14.6.1 to 27.0.1 (m3-max-35732).
cargo xtask check's Windows clippy left the video crate's own tests and
examples out, since its fuzzers' CPU-time clock was clock_gettime's alone. They
build for Windows now, so the exclusion goes, and the check type-checks every
workspace target for x86_64-pc-windows-gnullvm.
Every library crate builds for x86_64-pc-windows-gnullvm since 11-15, but
nothing in the check saw Windows, so the next Unix-only call in shared code
would break the Windows build unnoticed. The check now runs clippy for that
target on the Mac and on Linux, as the Mac already does for Linux: SDL left
unbuilt, nothing linked. The video crate's own tests and examples stay out,
since their CPU-time clock (codec/fuzz_support.rs) is clock_gettime's; its
library is still checked as reims-vgpu's dependency.
rust-toolchain.toml lists the target, so rustup installs it on every host,
and a test keeps the check's cross targets in that list.
`cargo xtask dist` refused on Windows. Run in MSYS2's CLANG64 environment, it
now builds reims-vgpu-c for x86_64-pc-windows-gnullvm, the MinGW target whose
archive QEMU's Windows build links, and writes the tree as on Linux: the
archive, lib/libreims_vgpu.dll, the header, and reims-vgpu.pc, whose
Libs.private is rustc's native-static-libs note for the target.
The archive bundles SDL3, whose 3203 SDL_* globals a host's own SDL (QEMU's
-display sdl, SDL 2) would bind to. Linux links the objects into one and makes
every global but the C API's local; COFF has no such link: lld makes no
relocatable object, and GNU ld -r resolves the objects' COMDAT sections into
static symbols in section 0 that lld refuses ("GCC_except_table36 should not
refer to special section 0"), after writing a plain COFF object of 156110
sections that no tool read until given --oformat pe-bigobj-x86-64. So the
objects stay as built, and llvm-objcopy --redefine-syms gives every global they
define but the rvg_* functions the suffix .rvg, with its __imp_ name, in every
object: no C name of a host's is one of them, and each reference in the archive
binds where it did. rustc's 1832 raw-dylib import members stay as built. dist
fails where the objects keep another global.
The DLL is linked from the archive with a module-definition file that exports
the rvg_* functions alone, and not --whole-archive, which would define each
crate's import descriptor of a DLL again. No import library is installed, so
-lreims_vgpu and meson's static lookup take the archive. What Linux and Windows
share (rustc's note, nm's listing, the C API's names and the globals check)
moves from linux.rs to dist/archive.rs.
Since 110b53637 nothing in production makes a host-OS surface: the
reims-graphics device's surfaces reach the Vulkan platform as buffers, and a
texture over a surface's plane is made with new_texture_over_surface_plane.
Only tests made IOSurfaces, and the previous commit moved those onto that
creator.
So the platform's surfaces go: the Surfaces trait and Platform::surfaces,
GpuDevice::new_buffer_on_surface and new_texture_on_surface, the resources'
iosurface getters, the OS modules (os/surface.rs, os/linux/surface.rs,
os/macos/iosurface.rs) and the testkit's counted surfaces. With them goes
what only an object over an OS surface reached:
- metal_space's surface ranges and Over::Surface/Over::Plane;
- backing.rs's surface aliases (Alias, gather_or_nil, its zeros);
- writes.rs's bound-memory and slot-writes queries, and encode_render's
Reach and binds, which decided the refused writes of 523 and 527 into a
texture over a surface, with the compute pipelines' kept descriptors that
only those queries read (a render pipeline keeps its guest descriptor,
which its encoders read);
- predication's dropped texel writes, and the message layer's fatal_send;
- allocate_zeros, TWINS_READ_ONLY and an import's second making on Linux.
The measured facts the live path relies on stay, in the live modules' docs:
metal_space's (the surfaces' address ranges Metal gives), ycbcr.rs's
("Writes": which YCbCr writes Metal stores, drops, or changes by a rule the
runtime does not hold) and resource.rs's (the plane Metal asserts or answers
nil at). out_of_host_memory is Linux's alone now, as only Linux's views and
imports run out of memory short of Metal. docs/architecture.md,
development.md and qemu.md no longer describe the OS surfaces.
Nothing the guest or host observes changes, as no production path has made
an OS surface since 110b53637.
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.
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.
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 module is a new piece of the repository, so the layout, the
architecture and the checks a change to it needs name it: architecture
11.5 says what it does and how it is linked, and AGENTS.md gives a change
to it a build and an arm64 guest's boot on Ambrosia.
docs/qemu.md says how a qemu-system-aarch64 with the device is configured,
which make qemu does not build, how a guest boots with the module, and what
the boots measured on the M3 Max: the console on the device, SSH with SIP
enabled and no boot arguments, the BARs where the module put them, and the
HVF assertion that the device's scanout dirty log, before 7aee20f4, hits.
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.
The host's video was five crates: core, codec, conformance, and the VA-API
and NVIDIA backends, with the examples and tools split between two of them.
One device uses them, from one library. They become one crate,
crates/reims-vgpu-video, with the modules core, codec, vaapi and nvidia, the
last two built on Linux alone. The conformance readers and writers, which only
the examples use, stay a crate of their own beside it, at
crates/reims-vgpu-video/conformance (reims-vgpu-video-conformance). The files
move with git mv, their paths rewritten, with no re-exports left behind. The
NVIDIA examples build on every host, as a stub off Linux.
Dead code goes with them: NVDEC's VP9 path and the codecs nothing asks it for
(NvdecCodec is H.264 and HEVC), and the Vulkan platform's listing of the
host's GPUs (host_gpus::hardware_gpus and gpu_device_gpu), which nothing
called, with its serde_json dependency.
AGENTS.md, development.md, docs/video and the nextest filter name the one
crate.
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.
On Linux the Vulkan platform is the library's only one, yet reims-vgpu and
reims-vgpu-c refused to build without their `vulkan` features (a
compile_error!), and the code behind it did not compile either: a
default-feature Linux build of the package failed. A crate that does not
build in a feature setting is a failure, so the platform is now unconditional
on Linux.
- reims-vgpu's new build script sets `cfg(vulkan_platform)` on Linux, and on
macOS with the `vulkan` feature, declared for check-cfg. Every
`feature = "vulkan"` gate in the crate is that cfg; the gates of "macOS or
the feature", true on every target the library builds for, are gone.
- The Vulkan platform's dependencies are not optional on Linux; on macOS they
stay the feature's, optional, so the Mac's default build is as before.
- reims-vgpu-c makes every handle on VulkanPlatform on Linux whatever its
features; the compile_error!s go.
Behaviour is unchanged on both OSes: on macOS every cfg answers as the
feature did, and on Linux as the builds with the feature did. The docs and
comments that said Linux needs the feature say it no longer does.
The guest's kext and option ROM are built in parallel and need the device's
wire format before the host side exists: its registers, the region's layout,
the rings' header and the control commands and events of the design's stage
2 wire protocol. They live in a new crate, reims-graphics, which will hold the
device's host side too, and cbindgen writes them into
include/reims_graphics_wire.h, which cargo xtask header --check keeps equal
to its output, as it does reims_vgpu.h.
Two fixes to the design's tables: a control ring's byte ring is 32 KiB, the
largest power of two after its 256-byte header in its 64 KiB (64 KiB less the
header is no power of two), and a pad's header is its type and size alone,
since the bytes left before a ring's end may be 8. A u64 that would follow a
u32 at an offset not a multiple of 8 has a reserved u32 before it, so C and
Rust lay the records out alike.
kache 2 seeds a worktree's incremental state from another worktree's only
when both targets sit inside their worktrees: it maps the compiler's working
directory to one path, and a target elsewhere puts a path of its own in the
compiler's arguments. Measured on the M3 Max: with targets inside the
worktrees, a second worktree's first edit of core compiled in 4.3 s from the
first's state, against 7.0 s with no donor; with each target in its own
directory under ~/.cache, the seed identities differed and it took 5.7 s.
So a worktree, which lives under ~/.cache, now builds in its own target/
with no CARGO_TARGET_DIR. Also rewraps a line of the previous commit.
The owner asked for Rust's incremental cache and kache 2.0.0's. dev-env.sh
no longer sets CARGO_INCREMENTAL=0 or KACHE_ADAPTIVE_INCREMENTAL=0, and unsets
both where a shell kept them, and `cargo xtask check` runs its cargo steps in
the environment it starts in, so a check run again after a fix rebuilds what
the fix changed. Each host's kache configuration turns on adaptive and seeded
incremental state: kache compiles a unit being edited incrementally, and a
new worktree's first incremental compile of it imports a compatible one's
state (rustc 1.98 or later). docs/development.md says how, and that kache 2
compiles through its daemon, which builds now start.
scripts/ mixed the one script a person installing reims-ctl runs,
install-ctl.sh, with eight that only developing the project runs: the worktree
and build environment, the GPU locks, the VM boot and tour drivers, the window
walk and the IOSurface qtest. Those move to scripts/internal, so scripts/ holds
what users run. run_vmapple.sh, walk_window_macos.sh and vm_drive.py find the
repository from their own path, one level deeper now; every reference in the
docs, the Makefile, the video crates' tools and the code's comments follows.
Each worktree's check compiled everything again with full debuginfo and
incremental caches no rebuild used. The dev profile keeps line tables for
the workspace and none for its dependencies, the check builds without
incremental caches, and builds go through kache where it is installed, so
a worktree's first build reuses what another tree built, build scripts
included. Tests read the tree's paths at run time, so a build is the same
in every tree.
scripts/new-worktree.sh makes a worktree from clones of the main checkout's
suite files, and AGENTS.md says a profiling run removes its traces.
Source: 53a4a8edd b568f382e 0c7a0eabc 72c24f74b 10051ba78 8f415697a 73d557f71
bde4220b6 46c7c6b23
A new x86-64 VM needed an OpenCore image and an installer made by hand with
OSX-KVM or ULTMOS. reims-ctl now runs reims-util for both: pick a macOS
version (n in the interface, create --macos on the command line) and it
downloads the installer from Apple, makes the VM's OpenCore image with OVMF
and a Mac identity of its own, and makes the disk.
- create --macos VERSION downloads Apple's recovery image (about 1 GB), or
with --offline an installer of one release (13 to 20 GB). Installers are
kept in the data directory's installers for the next VM, one reims-util at
a time writes there, and a stopped download continues. The download comes
before the VM's directory, so stopping it leaves no VM half made, and
reims-util ends with reims-ctl on Linux. What create is given (a disk, an
installer, an OpenCore image and the OVMF beside it, reims-util itself) is
checked before the download and the disk's copy, and the VM list is read
again before the VM joins it, so VMs made or deleted during a download
stay as they are.
- --opencore is optional: without it reims-util makes the image, with the
VM's MAC as its ROM, and an iMacPro1,1 for macOS 10.13 and 10.14. An image
of the user's brings OVMF_CODE.fd and OVMF_VARS.fd beside it, as
reims-util writes them.
- The interface's form asks where macOS comes from, the version first; with
no name, the VM takes the version's, skipping names a VM or a leftover
directory has. A VM with an installer says in its details, and create
prints, how to install macOS from it; one made from a disk is reminded to
set Metal's error mode.
- A new disk needs an installer or a download: a VM of an empty disk and no
installer is refused.
- Every installer attaches as a read-only disk (snapshot=on), a DMG
converted to a raw image in the VM's directory, so the CD drive is gone: a
change of installer applies at the next start. vm.toml's installer_kind
is no longer written, and is ignored where an older vm.toml has it. A
missing installer says how to eject it.
- reims-ctl __record-install, which scripts/install-ctl.sh runs last,
installs reims-util at the commit reims_util.rs pins, so the update that
brings this reims-ctl installs it too, though it runs the script it
started with. doctor checks for it in place of the system's OVMF, and the
install no longer adds the ovmf or edk2-ovmf package.
- vm.max_map_count: a new VM's default of up to 16 GiB needs about 1.13
million mappings, more than the 1048576 suggested (CachyOS's stock
value). The README, the install script, doctor and the start warning
suggest 2097152, which covers 30 GiB, and check against what the VM, the
largest VM or a new one's default needs.
- Updating from the interface while a create runs says the restart stops
it, as quitting does.
Dropped, as reims-util's images leave nothing for them to cover:
- create --from-script and the interface's launch-script import, which read
OSX-KVM's and ULTMOS's QEMU scripts. A VM made from one keeps working; its
vm.toml names its own copies.
- The search for OVMF beside a user's OpenCore image in those projects'
layouts, QEMU's edk2 build and the distributions' packages, and
--firmware-code and --firmware-vars.
- create --disk-mode overlay: copy, a reflink where the file system can, or
in-place covers an existing disk. A VM made with an overlay keeps working.
- --cpu-model and --cpu-flags on create and set, and the edit form's CPU
fields: new VMs take Skylake-Client-noTSX-IBRS. vm.toml keeps cpu_model
and cpu_flags, so an older VM keeps its model; docs/qemu.md says how to
change it there.
- --installer's --iso and --cdrom aliases.
README, the help and the docs no longer point at OSX-KVM or ULTMOS. README
step 3 describes reims-util's OpenCore picker (5 seconds, which an arrow key
stops, measured on homelab-ms01), and architecture.md 11.4 counts its image
among those that keep AvoidRuntimeDefrag on.
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.