Files
reims-vgpu/docs/known-issues.md
T
Anees Iqbal cca4d4b7e5 📝 List the 3D model previews that quit on Apple silicon guests [ci skip]
On an arm64 guest on macOS 27, Preview and Quick Look quit when they show
a 3D model: macOS draws part of the model's lighting into a texture format
that Metal lets programs write only on a GPU that reports an Apple family,
and our device reports none until it can do everything a family promises
(docs/graphics-kext/design.md, item 10). Intel Mac guests show the models.
2026-12-03 01:22:50 -08:00

20 KiB
Raw Blame History

Known issues

This page lists what we know is wrong right now, and what you can do about it.

With several GPUs, a VM can get the slower one

A VM runs on one of your host's GPUs. If you picked one, it uses that. If the host has only one GPU, it uses that. Otherwise it takes a discrete GPU over an integrated one. That's usually the faster choice, but not always, since some integrated GPUs beat small discrete cards. On one of our test hosts, with a Radeon 780M (integrated) and a Radeon RX 550 (discrete), VMs get the RX 550. Drawing the guest's display at 3840x2400 takes about 40 ms a frame on the RX 550, and 24 ms on the 780M.

On Linux and Windows you can pick the GPU yourself. reims-ctl gpus lists your GPUs, each with a number and its vendor and device IDs, and --gpu gives a VM one of them:

reims-ctl gpus
reims-ctl set mac --gpu 2      # the second GPU on the list
reims-ctl set mac --gpu auto   # back to the default

You can also set the variable yourself, in QEMU's environment. On that host, this gives the VM the 780M, whose vendor and device IDs are 1002:15bf:

reims-ctl set mac --env MESA_VK_DEVICE_SELECT=1002:15bf

DRI_PRIME and VK_LOADER_DEVICE_SELECT work too, with the same vendor:device in hex, and DRI_PRIME also takes a PCI address, such as pci-0000_03_00_0. If what you set doesn't name a GPU on your host, the VM gets the first GPU Vulkan lists. A Mac has one GPU, so there's nothing to pick there.

About This Mac can say "Unknown" for the processor

On an Intel Mac guest, About This Mac names your host's processor the way Apple names the processors of Intel Macs: its family, with the number of cores in front, such as "Quad-Core Intel Core i7". It counts your VM's CPUs rounded up to a power of two, so a VM with 3 CPUs shows "Quad-Core" and one with 5, 6 or 7 shows "8-Core". System Information's "Total Number of Cores" still shows how many CPUs the VM has. macOS only has names for the core counts Apple's Macs had, so where none of them had that many cores in your processor's family, About This Mac says "Unknown" instead. It shows a name for:

  • Core i3 with 2 to 4 CPUs;
  • Core i5 and Core i7 with 2 to 8 CPUs;
  • Core i9 with 5 to 8 CPUs;
  • Xeon with 1 to 16 CPUs: Xeon up to 4, and Xeon W from 5.

So a VM with 10 CPUs on a Core i7 host, or 4 CPUs on a Core i9 host, shows "Unknown". To see the name, give the VM a count from the list, such as reims-ctl set mac --cpus 8. A new VM gets half your host's CPUs, at least 2 and at most 8.

macOS has names for Intel processors only. On an AMD host, About This Mac shows the Intel family of the same rank: a Ryzen 7 shows as a Core i7, and a Threadripper or an EPYC as a Xeon. A newer Intel Core Ultra 7 shows as a Core i7 too. In the guest, sysctl machdep.cpu.brand_string still reads your processor's own name.

Video on Windows

We've found three bugs when a guest plays 4K H.264 video on a Windows host. We test that on an Intel UHD 630.

  • Wrong pictures. In 2 of 78 runs of our playback check, the guest got wrong pictures. Once it was a single bad picture in an otherwise good run. The other time a whole run was wrong, right after a run that had failed to decode.
  • "Cannot Decode". A video can stop at about frame 85 with "Cannot Decode". Before a recent fix that happened in 2 of 28 runs, and since then in 1 of 63.
  • A slow first frame. When a video starts, its first frame can take 0.1 to 0.5 s to show up. Before that same fix it took 0.8 to 0.9 s.

We're working on all three. We don't know of a workaround yet.

Task Manager's shared GPU memory for QEMU also climbs while a guest decodes video, and it stays up until QEMU exits. How far it climbs follows how many decoded pictures an app holds at once. One of our tests keeps every picture of a 4K HEVC clip, and each play added 5.5 to 8.2 GiB, to 37 GiB after six plays. An H.264 export in our tests added about 97 MiB a round. On our Intel UHD 630, no memory is used behind that figure: over two of those 4K plays it grew by 11.5 GiB, while the host's available memory didn't drop and its committed memory didn't rise. We haven't measured this on an NVIDIA or AMD card on a Windows host.

Some video formats don't use your GPU

Your GPU may decode or encode video formats that the guest doesn't get from it. For most of these, we found no way in macOS to hand the work to our virtual GPU, so the guest uses its own software, or has no player for them at all:

  • VP9 and AV1 decoding on Intel Mac guests. macOS 26.7.2 sends VP9 to a GPU driver like ours, but never tells it where to put each decoded picture, and it has no AV1 decoder that a GPU driver can serve. Intel macOS 26 also has the route arm64 guests use for these. We tried it on an NVIDIA and an AMD GPU: it took H.264 decoding and encoding off your GPU, and every video it took failed to decode. So our virtual GPU doesn't offer that route to Intel Mac guests: macOS there has no AV1 decoder of its own, and Safari decodes VP9 in its own software (video/devices.md, "VideoToolbox's paravirtual path on x86-64 guests"). Safari would use the route only where macOS knows it runs in a virtual machine, and the virtual machines reims-ctl makes hide that from macOS for now.
  • AV1 at 4:4:4, 4:2:2 or 12 bits on arm64 guests. Arm64 guests decode AV1 on your GPU in its common form: 4:2:0 colour at 8 or 10 bits. Other AV1 videos have no player in the guest. Your GPU's AV1 decoder doesn't decode 4:4:4 or 4:2:2, its 12-bit pictures would lose two bits on the way to the guest, and macOS in a virtual machine has no AV1 decoder of its own.
  • HEVC encoding on Intel Mac guests, on some GPUs. On a Linux host, an Intel Mac guest encodes HEVC on your GPU if your GPU encodes HEVC at both 8 and 10 bits, at the sizes your GPU encodes, and can encode a frame over again in its place. GPUs that encode through VA-API can; NVIDIA GPUs can where their driver allows it. With any other GPU, the guest encodes HEVC in software. Encoding doesn't use your GPU on Windows yet, whichever GPU you have, so the guest encodes video in software there.
  • HEVC at 4:2:2, 4:4:4 or 12 bits on Intel Mac guests. macOS 26.7.2 would only take these from a GPU as 4:2:0 at 10 bits, which loses colour detail, so the guest keeps decoding them in software at full quality.
  • HEVC at 4:2:2, 4:4:4 or 12 bits on arm64 guests. These decode on your GPU where its own driver offers them, and in the guest's software where it doesn't. The AMD GPUs we test on, a Radeon 780M and an RX 7900 XTX, offer none of them. NVIDIA GPUs decode 4:2:0 and 4:4:4 up to 12 bits, and 4:2:2 where the card's decoder handles it, such as the RTX 5080 Laptop GPU's; an RTX 3090's doesn't. We've checked the 5080's 4:2:2 pictures on the host, not yet from an arm64 guest on that card. An Intel Iris Xe decodes all of them, except 4:2:0 video at 8 or 10 bits that uses HEVC's range extensions profiles, which we don't take from Intel's driver yet.
  • JPEG decoding. On arm64 guests, macOS 14.6.1 and 26.6.2 look for Apple's own JPEG and scaler hardware by name before they hand a photo or a Motion JPEG video to a GPU. Our virtual machines have neither, so they decode JPEG in software. Our virtual GPU decodes JPEG when asked directly, but no app's route asks it. Intel Mac guests decode and encode JPEG in software too: macOS sends JPEG only to Apple's own JPEG hardware there as well, and the Intel Mac we checked, a 2019 MacBook Pro, doesn't have it either.
  • Some VP9 formats on arm64 guests. arm64 guests decode VP9 on the host's GPU in the formats its driver decodes. On an Intel Iris Xe that's 4:2:0 at 8, 10 and 12 bits and 4:4:4 at 8, 10 and 12 bits, but no 4:2:2. On an NVIDIA RTX 3090 it's 4:2:0 at 8, 10 and 12 bits, and on the AMD GPUs we tested 4:2:0 at 8 and 10 bits. arm64 macOS has no VP9 decoding of its own, so a stream in a format the host's GPU doesn't decode has no player in the guest. Our virtual GPU doesn't take two formats on any host: 4:4:0, and VP9's RGB colour space.
  • MPEG-1, MPEG-2, MPEG-4 Part 2, VC-1 and VP8 decoding, and VP9 and AV1 encoding. We found no way in macOS for a GPU to take these.

AV1 video using superres fails to play on the NVIDIA GPU we tested

Some AV1 videos use superres, which codes frames at a lower width and stretches them back out. On the NVIDIA GPU we tested, the GPU's decoder fails each frame of such a video that is built from earlier frames, which is most of them. An arm64 guest gets a decode error for each of those frames rather than a wrong picture. Other AV1 videos play. We haven't seen this on AMD or Intel GPUs.

HEVC from Intel Mac guests can come out over the bitrate asked

When an app in an Intel Mac guest encodes HEVC on your GPU, it asks for a bitrate, and macOS's encoder picks each frame's quality to land on it. It also looks for a measure of how detailed each picture is, which the GPUs we support don't report, so it judges from the sizes of the frames before. In our tests it lands within 6% of the ask at 1080p and 4K, with three exceptions:

  • On an NVIDIA GeForce RTX 3090, 10-bit HEVC at 1080p came out at 106% of the bitrate asked: 8.49 Mbit/s for 8 Mbit/s. NVIDIA's own encoder, given the same frames on the same card, came out at 105%.
  • At 8K (8192×4320) on an Intel Iris Xe, a one-second clip came out at 118% of the bitrate asked, and further from the original picture than the guest's own software encoder got with fewer bits (44.9 dB of PSNR against 48.1 dB). The GPU encodes 8K at about 10 frames a second, 20 times as fast as the software encoder but short of real time.
  • When an app asks for every frame to be a keyframe, the video came out at 4.1 to 5.0 times the bitrate asked on the GPUs we tested, each frame bigger and sharper than the one before. That's macOS's own encoder: with every frame a keyframe, it keeps raising each frame's quality the same way on a real Intel Mac, which came out at 5.7 times the bitrate asked in the same test. The video still plays back correctly.

An app can also set a hard limit on the bytes in any one second. In our tests at 1080p, with 8 Mbit/s asked and a limit of 1,000,000 bytes a second, the busiest second came out 1.7% to 3.0% over it, and every frame still played back. For HEVC, your GPU is driven by the same path of macOS's encoder as a real Intel Mac's GPU, which codes a frame over again when it breaks the limit. A real Intel Mac in the same test stayed under the limit in every second.

H.264 from Intel Mac guests doesn't hold a hard data-rate limit

An app that encodes H.264 can set a hard limit on the bytes in any one second. When an app in an Intel Mac guest encodes H.264 on your GPU, the limit is not acted on: on our AMD test GPU, the video came out exactly the same with the limit as without it. In our tests at 1080p, with 8 Mbit/s asked and a limit of 1,000,000 bytes a second (the same as the bitrate asked), the busiest second came out 18.3% to 19.4% over the limit on the AMD, NVIDIA and Intel GPUs we tested, and more than half of the one-second windows were over. The video as a whole stays within about 2% of the bitrate asked, and plays back correctly.

macOS's encoder takes one path for a Mac's Intel GPU and another for an AMD GPU, and for H.264 your GPU is driven by the AMD path. The Intel path codes a frame over again when it breaks the limit. The AMD path plans each frame against the limit and doesn't code frames over. A real Mac on the Intel path went 2.3% over the limit in its busiest second in the same test. We haven't measured a real Mac with only an AMD GPU, so we don't know yet whether one holds the limit.

A decoded video picture can mix with the next one in a rare case

When a guest decodes video on your GPU, the decoder writes each new picture off the guest's own GPU queues. Before it writes into a picture, the host waits for the guest's earlier GPU work that used it, including the same app's work on the same queue. It can only do that while the picture sits in the GPU's own copy of the guest's video surface. That's where all 595 pictures sat in our 1080p H.264 playback test on a Radeon 780M.

When a picture sits only in the guest's memory, the host waits only for the earlier work on other queues that the guest says comes first. If the same app's earlier work on the same queue is still reading the picture, it can read part of the next one.

Sound comes after video on Windows

On a Windows host, a VM's sound reaches your speakers about 0.07 s after the guest sends it, and macOS in the VM is told it plays within about 2 ms. So a video player in the guest shows each frame about 0.07 s before you hear the sound that goes with it. On a Linux host the same wait is about 0.03 to 0.05 s. We measured these on our Windows and Linux test hosts, and haven't measured other hosts yet.

macOS gets that 2 ms from its own driver for the VM's sound device, which reports the same figure whatever the host does. Telling it the real delay needs a driver of ours in the guest, which we don't have yet. We don't know of a workaround.

QEMU uses more memory than you gave the VM

Graphics memory that the guest and the GPU share comes from the host, on top of the VM's RAM. QEMU takes it as the guest's apps need it, and keeps 64 MiB of it spare so the guest doesn't wait when it asks for more. When the guest lets go of some, QEMU gives it back once it has gone unused for 5 seconds. On a Radeon 780M, a desktop with a browser and video used at most 73 MiB of it at a time, and 3D apps use more. So leave your host some memory beyond what you give the VM.

An app can pause when it asks for a lot of graphics memory at once

When an app in the guest asks for more graphics memory at once than QEMU has spare, the host's GPU driver has to allocate that much, and the app waits until it's done. Other apps in the guest don't wait for it. On an RTX 2080, an app that asked for 547 MiB waited 271.5 ms, and 139.5 ms of that was the driver's allocation. On a Radeon RX 550, an app waited 65 ms, 64.4 ms of it the driver's. We measured these before a change to how QEMU handles such a request, and we'll update them once we've measured again. The driver's part stays either way. We don't know of a workaround yet.

Preview and Quick Look quit when they show a 3D model on an Apple silicon guest

On an Apple silicon (arm64) guest running macOS 27, opening a 3D model, such as a .usdz file, in Preview makes Preview quit, and previewing one with Quick Look makes the preview quit. macOS draws part of the model's lighting into a texture format that Metal lets programs write only on a GPU that reports an Apple GPU family. Our virtual GPU doesn't report one, because it reports a family only once it can do everything that family promises. Intel Mac guests aren't affected: Preview shows 3D models there.

A macOS debug kernel may not start on an AMD host

On a Linux host whose CPU has AVX-512, such as a Zen 4 Ryzen, reims-ctl turns on AVX-512's registers for the threads of a macOS VM's apps. Apps still see no AVX-512, but the CPU runs their code faster: on a Ryzen 7 8745H, a CPU benchmark's scores went up about 10%. macOS's usual kernels work with this. A DEVELOPMENT or DEBUG kernel, from a Kernel Debug Kit, checks at startup that the saved registers take as much room as on Intel's CPUs. On AMD's they take less, so the check fails and the kernel stops; on Intel's it passes. We found this in the kernel's source and haven't started one this way.

To start such a kernel, turn this off for that VM. In its vm.toml (~/.local/share/reims-ctl/vms/NAME/vm.toml unless you made it elsewhere), add ,x-avx512-xstate=off to the end of cpu_flags, under [q35]:

cpu_flags = "+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,x-avx512-xstate=off"

Animations can run late on an Intel integrated GPU

On a Linux host with an Intel Iris Xe Graphics (Core i9-13900H), a web page that animates once per display refresh shows about 30% of its frames a refresh late, because under the host's default power policy its CPU runs the guest's and the host's graphics work at about 1.3 GHz, too slow to finish each frame within one refresh.

The pointer can move differently while the guest shares its screen

When a game hides the mouse cursor while the window has captured input, the window hands the game your mouse's own movement instead of your host's pointer. Some apps hide the cursor too when they record or share the screen, and draw it into the picture themselves. On an Intel (x86-64) macOS guest, the pointer stays normal through macOS's own screen recording, whose hidden cursor the window tells apart from a game's, and through Screen Sharing, which doesn't hide the cursor. A game you play while macOS records the screen gets the normal pointer too, so it may not turn its camera with your mouse until the recording stops. We haven't checked other apps that share the screen. On an Apple silicon (arm64) guest the window can't tell a recording's hidden cursor from a game's yet, so if a recording hides the cursor there, the pointer switches to the way it works for games: it then moves by your mouse's own movement and the guest's mouse settings, and can't move on to another of the VM's displays.

If the pointer switches while the guest's screen is shared or recorded, press the release chord once (Ctrl+Alt+Super, Ctrl+Alt+Win on Windows, or ⌃⌥⌘ on a Mac, where Window ▸ Release Input does the same). The pointer then stays normal until macOS shows its cursor again, which it does when the recording or share stops, even if you click back into the guest's picture meanwhile.

Touchpad scrolling moves in steps of 10 points on Intel Mac guests

In an x86-64 macOS guest, a touchpad on your host scrolls the way a touchpad does, by as far as your fingers move, but in steps of 10 points: movement shorter than that waits until more of it adds up. macOS's own driver counts scrolling in whole steps, and nothing a device can tell it makes a step smaller. The guest also gets the distance only, not the gesture: macOS doesn't see a swipe begin or end. arm64 guests scroll through their own virtual tablet instead, which gets the gesture too.

A stuck GPU closes the VM when it restarts

When a VM restarts, reims-vgpu first waits for the host's GPU to finish the work the guest gave it before the restart, so none of that work writes into the restarted guest's memory. Usually that takes a few milliseconds. While it waits, the VM is frozen: its window doesn't change and the guest doesn't respond. If it waits more than 2 seconds, reims-ctl shows that the VM's restart is waiting for the GPU, and how many pieces of work are left.

It keeps waiting as long as the GPU keeps finishing that work, up to 10 minutes. If 30 seconds go by without the GPU finishing any of it, we treat the GPU as stuck: the VM's window closes, the VM stops, and reims-ctl shows stopped: reims-vgpu: fatal: platform call the device's reset: the GPU had not run the work committed before the reset: ..., with where QEMU's log is. A single piece of GPU work that runs longer than 30 seconds, on a driver that never stops it, ends the same way. The drivers we test stop hung work well before that (AMD's after 2 seconds, Intel's within 25), so this only happens on a GPU no driver recovered. Start the VM again. If it happens again, send us QEMU's log.

On a Mac

You need macOS 26 or later to run VMs

On a Mac, reims-vgpu runs on Mesa's KosmicKrisp Vulkan driver, which comes with Homebrew's mesa. Homebrew builds KosmicKrisp only on macOS 26 and later, so on a Mac running macOS 15 or earlier, VMs don't start: QEMU finds no GPU it can use and stops. scripts/install-ctl.sh installs mesa for you on macOS 26 and later, and tells you when your Mac's macOS is too old. We've booted arm64 macOS 27.0.1 to its desktop this way on an M3 Max.

Opening apps copies more than on Linux

On a Mac, the guest's memory reaches the GPU through its address on the host. That way of sharing memory can't hand the GPU an image's bytes as they are, so we copy them. Most of the copying happens while apps open. On our M3 Max, we copied from about a quarter of a 1080p frame's bytes to about one and a half frames' worth while apps opened, and under 1% of a frame's bytes during steady animation. Windows hosts share the guest's memory the same way, so this applies there too, though we've only measured it on a Mac. Linux hosts share it another way, and we're building support there for using an image's bytes in place.