> 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?
Booting a macOS Apple Silicon Kernel in QEMU
11–20 of 73 posts
Re: Booting a macOS Apple Silicon Kernel in QEMU
#12Incredible. Emulating AppleSilocon before they even announced it. Does 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?
Re: Booting a macOS Apple Silicon Kernel in QEMU
#13> Besides, Hackintoshes are often built when Apple’s own hardware isn’t fast enough; in this case, Apple’s ARM processors are already some of the fastest in the industry. They 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 e…
Plenty of people who want MacOS but cannot afford the official Mac will use it instead.
Re: Booting a macOS Apple Silicon Kernel in QEMU
#14Incredible. Emulating AppleSilocon before they even announced it. Does 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?
Load the file into a decompiler, run it in QEMU with GDB attached, compare. Also have a general idea of how XNU boots.
I guess Jonathan Levin’s Books should then be mentioned here.
However, that then leads to the question how Levin reversed this black box.
Re: Booting a macOS Apple Silicon Kernel in QEMU
#15> 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
#16> Besides, Hackintoshes are often built when Apple’s own hardware isn’t fast enough; in this case, Apple’s ARM processors are already some of the fastest in the industry. They 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 e…
Hackintoshes from my experience are usually built as a low cost hobbyist alternative. Most people earning a living from a Mac will sacrifice speed to have stability and support. Plenty of people who want MacOS but cannot afford the official Mac will use it instead.
I could afford to buy hardware from Apple, but why would I when the cost/performance ratio for an embarrasingly parallel compute task like compiling is so much worse?
Re: Booting a macOS Apple Silicon Kernel in QEMU
#17Earlier quoted context omitted.
Load the file into a decompiler, run it in QEMU with GDB attached, compare. Also have a general idea of how XNU boots.
> Also have a general idea of how XNU boots. I guess Jonathan Levin’s Books should then be mentioned here. However, that then leads to the question how Levin reversed this black box.
Re: Booting a macOS Apple Silicon Kernel in QEMU
#18The 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
#19Re: Booting a macOS Apple Silicon Kernel in QEMU
#20The 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…
pretty cool
I've been thinking about resurrecting my machines with older versions of osx - I'll have to figure out how to boot say 10.11 or 10.12