4 ms·
No, Rosetta is private and not exposed to third party applications, and not really appropriate for supporting a VM because it is designed for apps running in u
by saagarjha 5y ago
No, Rosetta is private and not exposed to third party applications, and not really appropriate for supporting a VM because it is designed for apps running in userspace.
- samwillis 5y agoAre there any architectural lessons that could be learnt from Rosetta and applied to QEMU? So for example the “precompiling” of a binary, would that be possible with a VM?
- saagarjha 5y agoIt’s not impossible, but it would be significantly more difficult and limited in scope.
- haberman 5y agoWhat about the hardware support for total store order that Rosetta uses to provide the x86 concurrency model? Is that something third-party implementations could conceivably use? As long as that is available, it seems like third-party virtualization software could get similar performance to Rosetta, and potentially experiment with attempting to support system-level CPU emulation.
- saagarjha 5y agoTSO is only enabled for processes using Rosetta, so if you want to use it you’ll either need to hijack an existing process or expose it via a kext that patches in the appropriate flags. TSO is also only one of the puzzle pieces for why Rosetta is fast: you’ll also have to figure out how to avoid a software MMU if you want similar performance. This is difficult for whole-system emulation.