@slp@fosstodon.org avatar

slp

@slp@fosstodon.org

microVMs are kind of my thing (qemu-microvm, libkrun and krunvm). Opinions are my own. #nobot

This profile is from a federated server and may be incomplete. Browse more on the original instance.

slp, to random
@slp@fosstodon.org avatar

I wrote something about the project to enable Fedora Asahi to run x86_64 games in microVMs.

It also includes instructions for trying out an early snapshot of the changes. 😉

https://sinrega.org/2023-10-06-using-microvms-for-gaming-on-fedora-asahi/

slp,
@slp@fosstodon.org avatar

@matt Sure. There are various use cases, but the main one by far is running Android Automotive OS on the same system.

This saves you from having to put a second computer on your car just for running AAOS, and from dealing with the all the hardware enablement pain for another OS.

The wider goal, shared with Linaro and other players, is for virtio to become the standard set of interfaces for doing VM integrations in an Automotive environment.

slp,
@slp@fosstodon.org avatar

@matt You can use virtio-balloon’s free page reporting to return pages to the host, and DAX to avoid relying on the guest’s filesystem cache, effectively reducing the footprint to the bare minimum.

But I doubt Automotive deployments will rely on any of that since in most cases they’ll probably prefer predictable, static resource allocations for both latency and safety reasons.

slp,
@slp@fosstodon.org avatar

@matt Running any Android on a container is opening a can of worms. It may work today, but who knows if it'll work after the next update. Even Google have move away from running Android as a container in ChromeOS, using now a crosvm-based VM.

A VM gives you a stable and well-known contact surface based on a minimal amount of emulated system devices and standard virtio devices.

slp, to random
@slp@fosstodon.org avatar

Yup, it's definitely better with sound. 😄

(For those who didn't read my previous posts, this is Fedora Asahi Linux with a 16K kernel, running Steam with FEX-Emu on a libkrun-powered microVM with a 4K kernel, with graphics acceleration, and now with sound too).

Fedora Asahi Linux starting up the game Portal with graphics acceleration and sound in a microVM.

slp, to random
@slp@fosstodon.org avatar

On her streams, @lina has demonstrated the ability to run many commercial games on Asahi Linux. This may seem simple (it's just games!) but actually requires the combination of multiple bleeding edge technologies:

  • FEX-Emu: a high-performance x86_64 emulator for aarch64.
  • TSO enabling.
  • Alyssa and Lina's reverse engineered GL driver.
  • An implementation of Rob Clark's DRM native context for asahi.
  • krun for lightweight virtualization and virglrenderer integration.

https://vt.social/@lina/112524118075585601

slp, to random
@slp@fosstodon.org avatar

I think I can declare the DRM native context for Asahi PoC a success. I'm getting in glmark2 and Xonotic roughly the same fps both inside the VM and running native.

Even under FEX, Xonotic-x86_64 is able to stay above 130fps.

I've also tried some Steam games, running Fedora Asahi with the 16K page kernel, Ubuntu with a 4K in a VM, and FEX. This was just some very light testing, so please take this as a grain of salt. 👇

slp, to random
@slp@fosstodon.org avatar

OK, it's time. Let's add support for transparently running graphical apps in a VM with libkrun/krunvm.

I'm going to start by porting crosvm's virtio-gpu cross-domain functionality, which should enable us to run sommelier in the guest.

slp, to random
@slp@fosstodon.org avatar

This is Fedora 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.

Recording of a laptop running 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 appears as a regular window in the desktop.

slp, to random
@slp@fosstodon.org avatar

I finally found some spare time this last weekend and did a quick and dirty implementation of a virtio_blk translator (a userspace driver in GNU Hurd's terminology).
https://asciinema.org/a/v8t3V258szI3pil9FL2PvpHDf

slp, to random
@slp@fosstodon.org avatar

Just gave Plasma a try for the first time in years (I have a thing for tiling managers, so I mainly use sway, falling back to GNOME in exceptional situations). It's gotten really good. Kudos to the devs.

slp, to random
@slp@fosstodon.org avatar

.@captainjey asked to see some gameplay of Portal on Fedora Asahi with libkrun, so here I give you Test Chamber 10. Please note this is a very early implementation of virtio-gpu, virtio-snd and DRM native context for Asahi in Mesa.

Camera video recording of a MacBook Air M1 running Fedora Asahi while executing Portal through steam in a libkrun microVM using FEX-Emu.

slp, to random
@slp@fosstodon.org avatar

Since this year's DevConf was streamed live from YouTube, the recordings are already available!
https://www.youtube.com/@DevConfs/streams

fernand0, to random
@fernand0@mastodon.social avatar
slp,
@slp@fosstodon.org avatar

@vrruiz @fernand0 La cuestión que plantea el artículo se lleva debatiendo desde los mismísimos orígenes del Software Libre. ¿Es posible competir en el mercado haciendo Software Libre si cualquiera puede coger tu código y "apropiárselo"?

La diferencia es que ahora estamos en 2024 y hay infinidad de proyectos que demuestran que sí, que es perfectamente posible.

En consecuencia el artículo me resulta un tanto anacrónico.

vwbusguy, to linux
@vwbusguy@mastodon.online avatar

I wonder if has some kind of minimal and/or way to run x86 applications on an host, similar to Rosetta for MacOS or the similar WIP Microsoft compatibility.

slp,
@slp@fosstodon.org avatar

@kernellogger @vwbusguy For running a single application, both Box64 and FEX-Emu do a good job. For running a whole container, qemu-user has a better degree of compatibility, but performs worse than the other two. None of them are as good as Rosetta, but they could eventually get there.

A virtualization layer like libkrun is only needed when the host’s kernel runs with a page size other than 4K.

slp, to random
@slp@fosstodon.org avatar

So, if you had just a morning to spare in Tokyo or Yokohama, which place would you absolutely visit?

sesivany, (edited ) to fedora
@sesivany@floss.social avatar

makes it so easy to run different distributions on . They're always just one command away in the terminal.

And BTW now I can say: "I use Arch BTW". 😄

slp,
@slp@fosstodon.org avatar

@gbraad @mripard @sesivany Definitely semi-permanent. I've just checked and some of my toolbx containers are up to 22 months old.

slp,
@slp@fosstodon.org avatar

@mripard @sesivany @gbraad FWIW, I've started using Silverblue+toolbx for most of my dev work 3 years ago, and I'm very happy with this environment. Just setting a counterpoint. 😉

slp, to random
@slp@fosstodon.org avatar

It's finally time to talk about the work we've been doing on libkrun to enable containers to access the GPU on macOS. Try it out and let us know what you think!
https://sinrega.org/2024-03-06-enabling-containers-gpu-macos/

slp, to random
@slp@fosstodon.org avatar

I really want to like Matrix and Element, but no matter how hard I try, they don't allow me to do so.

Is there a Matrix desktop client that makes the experience kind of bearable?

slp,
@slp@fosstodon.org avatar

@vadim I'll give a try, thanks!

slp, to random
@slp@fosstodon.org avatar

It’s not going to happen, but it would be nice having Apple Silicon on cars. With a complete Linux-based BSP, of course 😉

slp,
@slp@fosstodon.org avatar

@gbraad The performance. The high-end embedded market is basically Qualcomm's monopoly.

slp, to random
@slp@fosstodon.org avatar

It's been more than 3.5 years since the first Apple Silicon laptop was release, and the number of decent non-Apple ARM64 laptops is still very limited. Just saying...

I guess both Windows software and Steam act as an anchor to Intel in that space. Relatively small incentives, potential customer's support nightmare.

slp, to random
@slp@fosstodon.org avatar

It's really hard to explain how freaking amazing is that Alyssa was able to put this together in just a month.

It's also humbling for us, the rest of devs that are just mere mortals... 😅

https://rosenzweig.io/blog/vk13-on-the-m1-in-1-month.html

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • DreamBathrooms
  • tester
  • InstantRegret
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • provamag3
  • megavids
  • lostlight
  • All magazines