172 points · by _venkatasg · 6y ago · 181 comments
It shipped on a couple million iPads, we know a decent amount about it already.
Even if Apple's ARM chips are not classically virtualizable (and I don't know whether that is the case), that was indeed the case for the x86 (pre VT-x) when two fairly straightforward solutions were applied: binary translation of non-virtualizable instructions (VMware approach) and paravirtualization (Xen approach.) This sparked the x86 virtualization revolution even before hardware support was available from intel and AMD.
Other approaches that could potentially work on a "non-virtualizable" ARM CPU include user-mode Linux, emulation, microkernels (similar to paravirtualization - recall Xnu contains mach and presumably still has the ability to outsource system calls and paging) and containers.
Particularly the main piece of virtualization is an added level of indirection to the page table walking hardware.
There's some IOMMU stuff that can be bought off the shelf (and ARM's SMMU for this is really good actually), but I imagine Apple would build their own (or acquire it) looking at the rest of their IP blocks.
Edit: Actually I'm not even sure if they could pull an SMMU in. Do we have confirmation that they're using AXI/CHI or do they have something else for their NoC protocol?
Apple isn’t really in the server business, and the kinds of high performance VMs that want direct hardware access seem unlikely to run on Apple silicon in the near future. It seems to me that virtualization could work just fine without an IOMMU in this scenario. (Certain GPU workloads would be an exception.)
That being said, I would expect Apple to have an IOMMU at launch for a different reason: Thunderbolt or any other external PCIe connection. Doing this without an IOMMU is a security catastrophe, in contrast to doing it with an IOMMU, which is merely an enormous attack surface that no one secured properly.
Is there a more ELI5'ish accessible walk through the context and why's behind this part of the discussion? It sounds really fascinating to me, but I'm not yet equipped to understand it well.
Then virtualization will just occur in the touchbar using emojis as feedback. ;)
Is that correct?
In the non-MAS version there's a per-VM option to use either Parallels' or Apples' Hypervisor.
No kernel extension required
We are still not sure about ASi’s memory map and if/how there are other limitations that might prevent it from booting anything other than macOS.
In the short term I expect that to be problematic. First party packages in the distro's package manager will be fine, but I expect it might be hard to find some third-party software compiled for ARM Linux. And any Docker containers in the Linux VM will need to use multi-arch or ARM Docker images.
Closed source, commercial software might be a bit more of a crapshoot, of course, but this should provide a fair bit of impetus.
So even though the rPi foundation may be slow (I don't know), the larger community has been working hard on making software build on AArch64.
I agree.
I liked that you could run docker on osx, but there was no support for something like FROM macosx:10.6
Maybe it will be possible? If apple put 1/1000th of the effort into virtualization/containers that they put into emojis...
I'd imagine the most common scenario for that would be macOS guests running on ESXi on Mac hardware, but my understanding is that e.g. a macOS guest under say Vbox or KVM with a linux host OS should also be "ok" in terms of the EULA.
Extremely limiting, and a real bummer.
Here in 2020, Apple invests a lot of resources to allow other OS's to be virtualized on macOS, but you still can't virtualize macOS on other OS's
Has a single court of law yet made a ruling to set a precedent saying they are legally binding?
If no, I’ll just keep treating EULAs like what they are: a corporate wish list of unlawful restrictions they want to impose on their customers.
Why should anyone care about that?
Many of the use cases for virtualizing OSX are for business purposes. Not a great idea to build a business off pirated software and trampled software licenses.
By requesting and reading this reply you hereby grant me 50% of your future income the next 5 years.
By your logic, this statement should legally binding too, just because someone somewhere wrote it and put it on your screen.
Obviously it’s not though, so why should a EULA be different? It’s literally the same thing.
At the very least: ProCD, Inc. v. Zeidenberg, 86 F.3d 1447 (7th Cir. 1996).
In early 1977, Unix V6 was an app that run on Interdata OS/32 [1]. (Within a few months, it had gained the ability to run directly on the Interdata 7/32 hardware, without the need for the rather primitive OS/32 operating system to sit under it.)
AT&T's 1979-1980 port of Unix to IBM mainframes ran it on top of the TSS/370 operating system [2]. (TSS was IBM's original, and ultimately unsuccessful, attempt to deliver timesharing for S/360 mainframes – TSO under MVS, and VM/CMS, succeeded where TSS largely failed. But TSS hung on for a few more years, sustained by the handful of customers using it, and AT&T decided it was the best base for their mainframe Unix port, and IBM was wiling to support them in that.)
[1] http://bitsavers.informatik.uni-stuttgart.de/bits/Interdata/...
[2] https://www.bell-labs.com/usr/dmr/www/otherports/ibm.pdf
Just wish it was debian based
Cool, why is this even posted?
https://github.com/docker/for-mac/issues/4733#issuecomment-6...
$ cat /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/
System/Library/Frameworks/Virtualization.framework/Headers/VZBootLoader.h
//
// VZBootLoader.h
// Virtualization
//
// Copyright © 2019 Apple Inc. All rights reserved.
//
#import <Virtualization/VZDefines.h>
NS_ASSUME_NONNULL_BEGIN
/*!
@abstract Base class of boot loader configuration.
@discussion
VZVirtualMachineConfiguration requires a boot loader defining how to start the virtual machine.
VZBootLoader is the abstract base class of boot loader definitions.
Don't instantiate VZBootLoader directly, instead you should use one of its subclasses.
@see VZLinuxBootLoader.
*/
VZ_EXPORT API_AVAILABLE(macos(11.0))
@interface VZBootLoader : NSObject <NSCopying>
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_ENDI'm spoiled, though. I used to have the full 6-volume set of Inside Macintosh[1].
They don't write 'em like they used to...
[0] https://apps.apple.com/us/app/a-companion-for-swiftui/id1485...
"Eschew flamebait. Don't introduce flamewar topics unless you have something genuinely new to say. Avoid unrelated controversies and generic tangents." - https://news.ycombinator.com/newsguidelines.html
There will be some inconveniences, but the reign of desktop x86 can't come to an end fast enough.
> The fact that it is very unlikely that you will be able to run linux
The jury is still out. There's some problem with booting other operating systems natively (BIOS support?). If people can get that to boot up, Linux on ARM runs fine.
Apple has never supported Linux on Macs, and yet people have run it successfully, myself included.
Also note that many (maybe most?) people get Apple computers in order to run OSX. Linux users are a tiny minority - even Windows users are quite niche.
> We’re also introducing new virtualization technologies in macOS Big Sur. So for developers who want to run other environments like Linux or tools like Docker, we have you covered.
ESR wrote the cathedral and the bazaar how many years ago?