RTX 5090 and M4 MacBook Air Gaming via Linux VM with GPU Passthrough
Original: RTX 5090 and M4 MacBook Air: Can It Game?
Why This Matters
Demonstrates novel approach to overcome Apple Silicon GPU limitations for gaming
A developer successfully connected an RTX 5090 GPU to an M4 MacBook Air using Thunderbolt eGPU dock and Linux virtual machine with PCI passthrough. The setup achieves desktop-level gaming performance despite running through virtualization on Apple Silicon.
The project connects a desktop RTX 5090 GPU to M4 MacBook Air via Thunderbolt 4 eGPU dock, then passes the GPU to a Linux ARM64 VM for gaming. Since macOS lacks NVIDIA drivers for Apple Silicon and tinygrad's eGPU solution is 10x slower than native Metal, the author engineered PCI passthrough on macOS. The setup requires custom DMA mapping, PCI BAR configuration, and handling Apple Silicon's memory architecture differences. Benchmarks show playable performance in games like Cyberpunk 2077, Shadow of the Tomb Raider, and Doom at various resolutions. The solution also enables AI inference on NVIDIA hardware from the MacBook. While technically complex, requiring kernel-level modifications and VM configuration, the project demonstrates feasibility of desktop GPU gaming on Apple Silicon through virtualization.