UTM: An Apple hypervisor with some unique extra abilities
theregister.com
theregister.com
UTM – Virtual Machines for iOS and macOS - https://news.ycombinator.com/item?id=37333404 - Aug 2023 (169 comments)
QEMU's x86 emulation is outrageously slow compared to Rosetta2. Is it theoretically be possible to hook Rosetta2 for full x86 machine emulation (like oldschool vmware did before VT)?
IOW It won’t work on a VM.
https://developer.apple.com/documentation/virtualization/run...
Theoretically: why not? Kernel is not something drastically different from userspace. Sure, some rules are different, but I don't think that it's completely impossible to adapt Rosetta to the kernel.
But practically: I doubt it. qemu is not supporting even ordinary Rosetta, last time I checked, despite that fact that it should be pretty trivial to implement.
It's not impossible but very infeasible since kernel has critical sections where you can't take an interrupt or fault (leading to panic); such code sitting at the translation boundary would not work.
It's also been in Docker Desktop for a few months now, thanks to that.