Commit Graph
8 Commits
Author SHA1 Message Date
Anees Iqbal 35e9da7ad6 📝 Say that animations run late on an Intel Iris Xe host [ci skip]
On a Linux host with Iris Xe Graphics (Core i9-13900H), a page that animates once
per display refresh shows about 30% of its frames a refresh late (untraced guest
walks, 27-33% in each). The host CPU runs the graphics threads at about 1.3 GHz
under its default power policy, and the walk-behind-encode form that could have
moved the take sooner did not reach its bar in a model of the traced walk.
Known-issues readers on Intel hosts should know what to expect.
2026-11-25 11:41:24 -08:00
Anees Iqbal 78cf5cb240 📝 Say what dsound's 60 ms reserve and the kick do, and what is left [ci skip]
docs/qemu.md's "Windows hosts: sound" now says what vendor/qemu 207be587
and 4d205af8 do: virtio-snd has the backend write each period as it comes,
and dsound holds 60 ms past DirectSound's write cursor. It says what the
old 92.88 ms held, why its sizing counted the timer twice, and the runs on
the mini: each replayed from every start phase, with the smallest reserve
any start needed (up to 58.0 ms busy at 60 ms), the clicks, and the fill at
a period's write (97.3 to 104.0 ms at the median, against 134.2). It also
gives the Linux host's run with the kick, and what the guest's players are
told of the latency: a constant 100-frame safety offset and no latency.

docs/known-issues.md says, for users, that sound comes about 0.1 s after
video on a Windows host, and why it isn't fixed yet. docs/lessons.md has
the trap: a margin sized as a spread plus one of its parts, and a run's own
start phase hiding its worst one.
2026-11-25 11:30:06 -08:00
Anees Iqbal 14aaf2b0d8 🆕 Turn AVX-512 state on for guests on every AVX-512 host
reims-ctl gave an x86-64 VM `x-avx512-xstate=on` only where the host's
XSAVE layout was not Intel's, which meant Zen 4 and Zen 5: on Intel's, no
gain had been measured. The owner asked for it on every host with AVX-512
(2026-11-21), so a Linux KVM host whose OS keeps the AVX-512 state now
qualifies whatever its layout. On Intel's, XNU's own copy of the state is
right, and the gain stays unmeasured: no host here has that layout.

For the guest on an Intel host with AVX-512: CPUID leaf 0xD lists the
AVX-512 state components, RgfxGate promotes each user thread to them, and
hw.optional.avx512f still reads 0. Every other host's command is unchanged
byte for byte. The test that held Intel's layout out now holds it in.
2026-11-21 10:47:47 -08:00
Anees Iqbal 81967c598b 📝 Document AVX-512 state for guests on Zen 4 hosts [ci skip]
qemu.md's CPU model section now says why a Zen 4 host runs a macOS guest's
code without its op cache, what QEMU's x-avx512-xstate property and
RgfxGate's xstate route do about it, the four conditions under which
reims-ctl adds the property, how a VM's cpu_flags turn it off for a KDK
kernel, and what was measured: op-cache shares, the route on six releases,
and the timed pairs on the 8745H.

lessons.md records the trap the route had to fix: XNU copies a thread's
AVX-512 state at Intel's XSAVE offsets, which on a Zen 4 core are not
where XSAVE put it, and nothing logs the loss.

known-issues.md tells users that a DEVELOPMENT or DEBUG kernel stops on
such a host, and how to start one.
2026-11-21 08:52:15 -08:00
Anees Iqbal 60e5ae7965 📝 List the wait for a lot of graphics memory at once [ci skip]
A take of a piece of its own length now blocks only the guest call that
asked, but that call still waits for the host driver's allocation of its
length: on the 2080, 139.5 ms of a 547 MiB take's 271.5 ms wait for its
piece, and on the RX 550, 64.4 ms of 65 ms. Those are the measurements from
before the pool's change; the next gate walk measures them again.
2026-11-20 07:43:48 -08:00
Anees Iqbal 3a13ac532f 📝 Say a Mac host copies more while apps open [ci skip]
The planner measured the copies on the M3's walk: while apps opened, from
24% to 152% of a 1080p frame's bytes; in steady animation, under 1%. On a
Mac the guest's pages reach the GPU by host pointer, and that kind of import
has no handover that keeps an image's bytes, so the platform copies them.
Linux hosts import through dma-bufs where the pages lie in one, and an
in-place form there is being built.

docs/known-issues.md's Mac section becomes "On a Mac", with the macOS 26
floor and this as its two parts. Windows is named as a fact of the code:
rt_platform/buffer.rs's import_pages takes the pages by pointer on every
host but Linux's dma-buf path (buffer.rs:1483-1491); the copy amounts are
measured on the Mac only.
2026-11-20 06:03:27 -08:00
Anees Iqbal 50a4abbb20 🐛 Say a Mac before macOS 26 starts no VM, not one without a GPU
docs/known-issues.md and install-ctl.sh's warnings said that on a Mac with
no KosmicKrisp, macOS 15 or earlier or a mesa without the driver, VMs get no
GPU. They do not start: the library's device has no GPU device to open
(reims-vgpu's GraphicsDevice::with_platform refuses with HostResources), so
rvg_graphics_device_create refuses, and QEMU's reims-graphics-pci fails its
realize, which ends QEMU before the guest runs. reims-ctl gives every arm64
VM that device, and arm64 VMs are what a Mac runs.

The doc's heading and paragraph and the installer's two warnings now say the
VMs do not start.
2026-11-20 06:03:27 -08:00
Anees Iqbal fb2a055373 📝 List what is wrong today in docs/known-issues.md [ci skip]
The cutover makes the rt platform the library's platform, and with it some
things a user meets that the README did not say: on a host of several GPUs
the VM takes a discrete GPU over an integrated one, untimed, so a host whose
integrated GPU is the faster one gets the slower card; three open bugs of 4K
H.264 video on a Windows host; the host memory the guest's Shared pool holds
beyond the VM's RAM, with its 64 MiB headroom and 5 s release delay; and on a
Mac, Mesa's KosmicKrisp, which Homebrew builds only on macOS 26 and later.

docs/known-issues.md says each in the user's voice, with how to pick the
other GPU through reims-ctl's --gpu or --env, and the README's Beta note
links it in one sentence.
2026-11-20 06:03:27 -08:00