A Brief History of Virtualisation
<- about 15 years ago, I wrote this five-part feature for the Register. Later, it was compiled into a Kindle e-book, my first published book (now, sadly, deleted). I've updated the 11YO blog post in which I collated all the links in 1 place.
@lproven
A little bit of trivia related to:
A big part of the reason for this was IP. XenSource had an policy of looking at old (expired) IBM patents and copying them as closely as possible. This gave them a strong defence against patents because they could point to the expired patent covering what they wanted to do as prior art, which ran the risk of anyone suing them ending up with their patents invalidated.
This is the wrong way around. It's the other requirement that x86 doesn't meet. You can restrict access to privileged instructions (without that, protecting the kernel from userspace on x86 wouldn't be possible). What you can't do is guarantee a trap. Some of the privileged instructions on x86 simply execute as no-ops if you try to run them out of ring 0. VMWare's approach was to scan pages that were mapped executable for these instructions and patch them. Xen's solution was to say 'don't run those instructions' and provide hypercalls to use instead. If you used the instructions instead of the hypercalls, it didn't break Xen's security model, it just caused your guest kernel to behave incorrectly.
The story I heard for this was that the VAX had three rings and Intel wanted DEC to port VMS to x86. DEC said that they needed three protection rings, so Intel implemented them. Then DEC ported VMS to Alpha (with two rings) instead.
I believe iRMX also used multiple rings if available, but I'm not 100% sure.
Hyper-V ended up being a complete rewrite eventually but the x86-on-PowerPC emulator came in handy when the Xbox 360 launched: it let Microsoft run x86 Xbox games on PowerPC Xboxes. This product is also the reason Windows still runs on PowerPC and Visual Studio's compilers have a PowerPC back end.
This is a bit dated. Both Xen and Hyper-V are type-one hypervisors (i.e. the host and the guest are not the same OS, and the guest can run a specialised guest for managing the control plane). ESXi even has a mode where the control plane is entirely on a SmartNIC and you just need enough host memory for the page tables.
Ah, systrace. I don't miss you at all.