News for hackers. Stuff that matters.
Re:Apple Virtualization Framework by detourdog on Sunday June 04, 2023 @06:41AM (#36184545)
I think this is being done because the Mach microkernel was designed to run multiple OS's at the same time. I think Apple finally has enough developers to start pushing into new areas such as a framework to advantage Mach.
Re:Apple Virtualization Framework by saagarjha on Sunday June 04, 2023 @06:50AM (#36184590)
Virtualization is, of course, based on a very standard KVM-like API. There's not much Mach in its design at all.
Re:Apple Virtualization Framework by detourdog on Sunday June 04, 2023 @07:13AM (#36184693)
Mach is down below. This is what Mach is for the BSD that was originally part of the DARPA deliverable was just to prove that Mach could run on OS.
Re:Apple Virtualization Framework by saagarjha on Sunday June 04, 2023 @08:00AM (#36184931)
There's not much down below it. It calls into the Hypervisor APIs, which directly touch platform virtualization features.
Re:Apple Virtualization Framework by detourdog on Sunday June 04, 2023 @09:52AM (#36185616)
We are obviously talking past each other. On MacOS Mach provides all the resources. Mach was designed to abstract Operating systems from the underlaying hardware. It could also run more then one operating system at time since that was normal expectation.
Re:Apple Virtualization Framework by saagarjha on Tuesday June 06, 2023 @08:38AM (#36211706)
Right, but that has nothing to do with the Virtualization framework.
Re:Apple Virtualization Framework by aa-jv on Sunday June 04, 2023 @07:26AM (#36184746)
"Being done", I'm not sure anything is happening here other than a happy user pointing out that Apple have some advances in this area, but .. your point is that this has been there all along.

Alas, if only there were the hardware at scale which supported Apples' Mach implementation, at favourable economies.

One way this is favourable to this dev is if Apple finally give me a machine which I can use to Build All the Things™, including iOS and MacOS and Windows and Linux and Android, oh my!, virtually and/or with x86/ARM cores onboard, oh yeah!, without having to resort to the typically draconian bollocks on other platforms, or rent someone elses hardware, or whatever.

A new Mac Pro that can be loaded to the gills and host several competing OS's at once, for the purpose of software development? Sign me up, because I'm tired of build-box'ing rigs and fighting that darn license ..

Re:Apple Virtualization Framework by detourdog on Sunday June 04, 2023 @07:37AM (#36184809)
When Mach was defined it was considered a centralized campus computer that could run all the needed operating systems on top of centralized memory and processing using IPC.

https://en.wikipedia.org/wiki/Mach_%28kernel%29

Re:Apple Virtualization Framework by aa-jv on Sunday June 04, 2023 @03:41PM (#36188833)
Sure, Mach is great. No argument from me here.

Well except that, a new developer-focused Mac Pro with that centralized campus feeling, sounds great to me.

I can only wish it would have both x86 and ARM cores onboard, though, to get that true all-round Mach prowess...

Re:Apple Virtualization Framework by sroussey on Sunday June 04, 2023 @12:29PM (#36186941)
I build windows and Linux and iOS and macOS all on my MacBook Pro.
Re:Apple Virtualization Framework by ch_123 on Sunday June 04, 2023 @09:39AM (#36185518)
Mach was designed to run multiple OS interfaces in the same way that Windows NT was - multiple compatibility layers on top of a common kernel (e.g. WSL1). What is being discussed here is virtualization, for which Mach is no more suited than Linux, Windows, Sys V Unix etc.
Re:Apple Virtualization Framework by detourdog on Sunday June 04, 2023 @09:59AM (#36185667)
Mach was designed to make clean separation between operating systems and hardware. Notice how easily Apple moves between hardware? The unsung hero is Mach and the design patterns that NeXT/Apple framework built on top of it.
Re:Apple Virtualization Framework by foldr on Sunday June 04, 2023 @10:14AM (#36185759)
It’s easy from the user’s point of view. It’s not easy to write Rosetta.
Re:Apple Virtualization Framework by glhaynes on Sunday June 04, 2023 @01:19PM (#36187426)
I'm certainly not an xnu specialist but from what I understand, you've basically got a BSD kernel (a "macrokernel") running in privileged mode that (roughly) just has a few services replaced by or connected to Mach ones. So I'm not really sure they get much portability benefit specifically from Mach versus "more traditional" kernels.
Re:Apple Virtualization Framework by tedunangst on Sunday June 04, 2023 @02:28PM (#36188123)
Every modern operating system was designed to easily move hardware. (It also helps a lot that all hardware is basically the same thing.)
Re:Apple Virtualization Framework by astrange on Sunday June 04, 2023 @02:44PM (#36188270)
There is nothing special about Mach/xnu here and it is not helping anything.
Re:Apple Virtualization Framework by ch_123 on Sunday June 04, 2023 @03:09PM (#36188505)
That is largely due to a mix of Apple's investment in emulation technologies, and Apple's ability to exert influence on third party developers and vendors to keep up with their latest tooling. Very little to do with the Mach kernel.

The ability to move between hardware platforms also has very little do with the ability to run operating systems in virtualization. Case in point is that Apple is one of the last major OSes to include a hypervisor in the OS.