This is Fedora #AsahiLinux with a 16K page size kernel, running a 4K kernel within a libkrun microVM and launching an x86_64 game (Roto Force demo) using FEX-Emu, which integrates seamlessly as a regular app in the desktop.

Recorded with a camera to avoid the performance impact of recording the screen locally.

@slp Nice work! :-) Is the performance worse than Linas tests with Portal&stuff because you have to run 2 kernel at the same time? @lina will this be the future how you run games on Asahi? Or will it be recommended to boot an 4K kernel for this? :)
@detlev @slp For decent performance you probably want native GPU DRM virtualization. I think anything that works at the user API level will have too much overhead for serious games.

@lina @detlev I agree. In fact, I was planning to try the gfxstream/venus route first, because it seemed like a low hanging fruit, but given that these also require changes in Mesa, I've started looking into supporting DRM native context, like msm/freedreno does.

Moreover, with a fresh new kernel+userspace GPU stack, and having you and Alyssa around, Asahi has a very good chance for implementing cross-domain (host+guest) optimizations.

@lina @detlev FWIW, combining cross-domain with msm/freedreno native context, on a Chromebook X2 I'm seeing well over 130fps on Xonotic, very close to native performance. As a comparison, with virgl I get a little over 30fps. This is showing some promise.

Let's see how hard would be getting native context supported with Asahi/AGX.

@lina @detlev @slp are the 4K kernels available for testing somewhere