Booting a macOS Apple Silicon Kernel in QEMU
worthdoingbadly.com
Booting a macOS Apple Silicon Kernel in QEMU
1–10 of 73 posts
Re: Booting a macOS Apple Silicon Kernel in QEMU
#2This approach will help with none of these
Don't underestimate the community -- a lot of Hackintosh (and emulation) stuff is done for the "just because I can" reasons, and getting a fully emulated ARM Mac working enough for any sort of actual use would be a huge win even if it's slower than their hardware and not 100% complete (just like Hackintoshes usually are.)
Re: Booting a macOS Apple Silicon Kernel in QEMU
#3The fact that he even got that far with emulating what is essentially completely undocumented hardware is a very good sign, adding the rest of the hardware to QEMU might not be as hard as initially thought. This approach will help with none of these Don't underestimate the community -- a lot of Hackintosh (and emulation) stuff is done for the "just because I can" reasons, and getting a fully emulated ARM Mac working…
Re: Booting a macOS Apple Silicon Kernel in QEMU
#4Re: Booting a macOS Apple Silicon Kernel in QEMU
#5Does anyone know what these instructions are? And could you not trap and emulate them if the hypervisor detects an invalid instruction?
Re: Booting a macOS Apple Silicon Kernel in QEMU
#6Re: Booting a macOS Apple Silicon Kernel in QEMU
#7> macOS uses CPU instructions that aren’t available yet on non-Apple ARM CPUs, so you can’t have hardware accelerated virtualization, Does anyone know what these instructions are? And could you not trap and emulate them if the hypervisor detects an invalid instruction?
Re: Booting a macOS Apple Silicon Kernel in QEMU
#8They are also used when one wants more cores than are possible on Apple hardware. If you want a build engine for a medium to large sized compiled language project, Apple has no options that make economic sense, since a Ryzen Threadripper will beat everything else hands down. The same is true of every other embarrassingly parallel, linearly-scaling compute problem.
In such cases, the "speed" of Apple's own silicon doesn't help at all.
Re: Booting a macOS Apple Silicon Kernel in QEMU
#9The fact that he even got that far with emulating what is essentially completely undocumented hardware is a very good sign, adding the rest of the hardware to QEMU might not be as hard as initially thought. This approach will help with none of these Don't underestimate the community -- a lot of Hackintosh (and emulation) stuff is done for the "just because I can" reasons, and getting a fully emulated ARM Mac working…
I'm less convinced—it sounds like he was largely reusing the setup that can semi-boot iOS (which is of course also totally undocumented, but has had many years to be studied.)
It's still a cool accomplishment, I just don't think it necessarily portends great things.
Re: Booting a macOS Apple Silicon Kernel in QEMU
#10Does anybody know where one can learn about how these people approach and learn about the inner workings of what is essentially a black box from the outside?