4 ms·
> VFIO is virtualization where hardware is passed through to the guest OS. I use KVM+qemu on Linux and attach PCI devices like GPU and storage to the VMs. This
by atq2119 5y ago
> VFIO is virtualization where hardware is passed through to the guest OS. I use KVM+qemu on Linux and attach PCI devices like GPU and storage to the VMs. This is a native Windows game build on a Windows VM on a Linux host. It performs within a tight few percent of bare metal Windows, and the host is fully functional while in use.
How about displays, though? It doesn't seem like you could have a proper integrated desktop between host and VM when using VFIO.
- yissp 5y agoI haven't tried it personally, but I believe the Looking Glass project https://looking-glass.io/ https://looking-glass.io/ is attempting to solve this.
- washadjeffmad 5y agoLookingglass, as another user mentioned, peers directly into the framebuffer for an effectively latency-free display experience on the host. You can also connect the graphics device that's passed through to an external display. As an example, my SO and I can both play a multiplayer game from the same computer this way. I can use a VM with lookingglass on my Linux host while she uses a monitor connected to the GPU her VM has attached, along with a passed-through hub with mouse and keyboard. It helps that Threadripper has two NUMA nodes, but it's possible on any system with good IOMMU grouping.
- MayeulC 5y ago> As an example, my SO and I can both play a multiplayer game from the same computer this way. I can use a VM with lookingglass on my Linux host while she uses a monitor connected to the GPU her VM has attached, along with a passed-through hub with mouse and keyboard. You could also run regular multi-seat Linux with such a setup. It should also be possible to do it without multiple GPUs, but that's unfortunately more involved (if anyone has a simple way to do this in wayland land, I'm all ears!).