utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
27.18k stars 1.34k forks source link

Using libkrun-efi as open source alternative to Apple's Virtualization framework #6703

Open mgrossu opened 1 month ago

mgrossu commented 1 month ago

The new EFI flavor turns libkrun into an open-source alternative of Virtualization.framework on macOS. It brings some excellent additions, such as a Vulkan-capable virtio-gpu, which allows you to offload compute workloads to the host's GPU, and an extended virtio-fs implementation. Podman 5.2 is taking advantage of this: https://linuxiac.com/podman-5-2-enhances-macos-vms-with-gpu-support/. Would be nice to add this VMM backend in addition to qemu and Virtualization.framework.

osy commented 1 month ago

libkrun uses Hypervisor.framework the same as QEMU. Adding a new backend is tremendous effort. Why is it not possible to port the vulkan-capable virtio-gpu to QEMU instead? Is there any documentation on how they are doing it?

lurenJBD commented 1 month ago

libkrun uses Hypervisor.framework the same as QEMU. Adding a new backend is tremendous effort. Why is it not possible to port the vulkan-capable virtio-gpu to QEMU instead? Is there any documentation on how they are doing it?

Maybe this patch to make virtio-gpu to support Venus on macOS ?

https://patchew.org/Xen/20231219075320.165227-1-ray.huang@amd.com/

I kown it form here: https://github.com/lima-vm/lima/issues/2277

osy commented 4 weeks ago

@lurenJBD Xen and KVM are both Linux-only virtualization technologies

lurenJBD commented 3 weeks ago

@lurenJBD Xen and KVM are both Linux-only virtualization technologies

Yes, I was wrong, this link is the modification for libkrun

https://github.com/containers/libkrun/pull/174