Disguised as a “Performance Tool” on a 256KB Machine — How Five IBM Rebels Invented the Virtual Machine
How five IBM engineers built the first modern virtual machine in 1964 using a 64-word associative memory box on a 256KB System/360 Model 40.
From a 64-Word Hardware Box to Five-Level Nested Virtualization — How Five Rebels Turned Silicon into an Interface
In the spring of 1967, inside the System/360 Model 67 computer room at MIT Lincoln Laboratory, IBM’s flagship time-sharing operating system, TSS/360, was collapsing in production. Every initial program load (IPL) from tape took ten full minutes before a single terminal could log on, and the system’s mean time between failures was under ten minutes as well.
Dick Bayles, an engineer from the fourth floor of 545 Technology Square in Cambridge, stepped in with an unauthorized reel of tape: CP-67, written by a five-person research team. Within sixty seconds of mounting it on the exact same Model 67, every IBM 2741 Selectric typewriter terminal in the facility unlocked and came online. Lincoln Laboratory computation director Jack Arnow watched the demo, demanded IBM pull TSS, and placed CP-67 into daily production in April 1967.
That tape was the product of a clandestine skunkworks project. Operating under the official disguise of a "performance measurement tool" and funded by selling off-shift night cycles on an old 7094 mainframe, five engineers had created the modern virtual machine family by stripping multi-user complexity out of the operating system. Six years later, their five-level nested virtualization would end up rescuing MVS, the flagship IBM system that headquarters had spent years trying to replace them with.
545 Technology Square: Dropping Dynamic Address Translation
The architecture was born out of an institutional disaster in early 1964.
In February 1964, Norman L. Rasmussen opened the IBM Cambridge Scientific Center (CSC) on the fourth floor of 545 Technology Square in Cambridge, Massachusetts. The fifth through ninth floors housed MIT’s Project MAC.

Two months later, on April 7, IBM unveiled the System/360 mainframe family. To meet production deadlines and manage silicon risk, corporate management eliminated dynamic address translation (DAT) hardware designed by Gerry Blaauw, shipping the initial S/360 lineup with no hardware-level virtual memory or relocation support.
MIT took the stance that building a next-generation time-sharing system without hardware address translation was impossible. Although IBM hastily submitted a patch proposal featuring an add-on "Blaauw Box," MIT and Bell Labs rejected the bid and purchased General Electric GE-645 mainframes to build Multics.

Losing the marquee MIT contract shocked IBM headquarters. Corporate leadership formed the Flewellin House task force in New York, pouring massive resources into developing the hardware-DAT System/360 Model 67 and the official TSS/360 time-sharing system.
With the spotlight focused on Multics upstairs and TSS/360 in New York, the Cambridge team sat outside the mainstream roadmap. Rasmussen disagreed with the monolithic direction of TSS. He hired Bob Creasy, co-author of the 1963 CTSS Programmer's Guide at MIT, and assembled a core team of five: Creasy, Les Comeau, Dick Bayles, Bob Adair, and John Harmon.
Turning the Hardware Manual into an Interface
Having helped build MIT's CTSS, Creasy understood the structural flaw of contemporary time-sharing.
By the mid-1960s, CTSS allowed application programmers to edit code interactively from terminals, but kernel developers remained completely locked out.
No traditional time-sharing kernel could allow ordinary terminals to execute privileged instructions that altered interrupt masks or directly addressed physical disk channels. Whenever systems engineers needed to test kernel modifications, they still had to wait for the entire system to go offline, booking the entire mainframe for graveyard shifts on weekends.

Monolithic supervisors also tangled resource multiplexing, memory protection, and user command processing into a single codebase. Changing one sub-routine jeopardized the entire environment.
Around Christmas 1964, Creasy hit upon an alternate model during his commute from Arlington to Cambridge. During the final week of that year, he and Les Comeau formalized a clean separation: Level 0 would manage real machine resources, while Level 1 would provide single-user service. Multiplexing would be handled entirely at the bottom, leaving the operating system upstairs as a simple single-user program.
In his 1981 retrospective paper, Creasy explained this bifurcation:
"A key concept of the CP/CMS design was the bifurcation of computer resource management and user support. In effect, the integrated design was split into CP and CMS. CP solved the problem of multiple use by providing separate computing environments at the machine instruction level for each user. CMS then provided single user service unencumbered by the problems of sharing, allocation, and protection."
For the contract between these two layers, the team created no novel software protocol. They opened the standard manual sitting on every System/360 programmer's desk: 《System/360 Principles of Operation》.
"Going back to basics turned up the answer: The instruction set, the essence of this new machine line as documented by the System/360 principles of operation manual, would be the interface to the time-sharing control program. Each user would have the complete capability of the System/360. Machine sharing and allocation would be accomplished below this level by the Control Program."
Under this design, the underlying Control Program (CP) managed the real hardware and presented a replica of the full System/360 architecture to each session. Upstairs, the Cambridge Monitor System (CMS, later renamed Conversational Monitor System) stripped out multi-programming, user scheduling, and virtual memory logic. Early versions were so simple they could boot directly from a physical card reader.

From an IBM 2741 printing terminal, every user's CMS believed it owned memory starting at address zero. Systems engineers could bypass CMS entirely and boot an entire experimental operating system directly into their virtual machine without disturbing anyone else.
Building on a 256KB Machine with Custom Silicon
When hardware arrived in Cambridge, the team faced immediate equipment and organizational hurdles.
The center had requested a higher-end System/360 Model 50. However, the Federal Aviation Administration (FAA) absorbed all available Model 50 manufacturing capacity for its air traffic control modernization. CSC received a downgrade: a System/360 Model 40 equipped with just 256KB of main core storage, lacking any storage protection relocation registers or DAT hardware.

At the corporate level, after the team briefed outside technical groups in January 1965, headquarters warned that an unauthorized time-sharing project was counter-strategic to the official TSS/360 effort.
Rasmussen reframed the project's official purpose: Cambridge was not building a time-sharing operating system, but rather an experimental measurement tool to quantify virtual memory paging behavior for the Poughkeepsie hardware lab. To fund circuit modifications and pay student assistants (including 21-year-old Stu Madnick), Rasmussen sold off-shift night cycles on an IBM 7094 installed at MIT.
Using this off-budget cash, Comeau teamed up with Poughkeepsie engineers Rex Seeber and A. Bruce Lindquist to build a custom hardware unit.
They wired an external device directly between the CPU address generation circuitry and the core memory bus: the Cambridge Address Translator (CAT). The 256 KiB core memory divided neatly into sixty-four 4 KiB physical page frames, matched by exactly 64 associative storage slots inside the CAT box. When dynamic translation was active, the associative array compared the running virtual machine ID and virtual page number in parallel. A match instantly produced the 6-bit physical frame index (0 to 63), costing zero additional memory cycles because the Model 40's read cycle was slow enough to absorb associative lookup latency.


The microcode required manual modification as well. The Model 40's microprogram resided in 4,096 sixty-bit words of Mylar tape read-only storage (TROS). Dick Bayles, Les Comeau, and Fritz Giesin re-encoded the microcode to ensure multi-byte instructions crossing page boundaries verified page presence before fetching. When debugging microcode patches late at night, the engineers extracted the Mylar sheets, punched new holes with a hand punch, and reinserted them into the machine.
By 1966, CP-40 was operational, hosting fourteen simultaneous 256KB virtual machines on that single modified Model 40.
The measurement tool cover story quickly proved its real value to the company. In his 1982 SEAS paper, Comeau recalled how little the computer industry actually understood virtual memory at the time:
"What was most significant to the CP-40 team was that the commitment to virtual memory was backed with no successful experience. A system of that period that had implemented virtual memory was the Ferranti Atlas computer, and that was known not to be working well. What was frightening is that nobody who was setting this virtual memory direction at IBM knew why Atlas didn’t work."
In late 1966, the Cambridge team observed and documented thrashing on CP-40, identifying how disk queues saturated while CPU utilization crashed to zero. Comeau designed an 81-run matrix (4 factors across 3 levels), consuming 63 hours of machine time to produce the first empirical data mapping working sets against paging algorithms.
Problem State Trapping and Channel Program Translation
With address translation solved, the software had to handle privileged instructions and asynchronous I/O channels.
System/360 defined two hardware privilege modes: Supervisor State and Problem State. CP established a strict rule: the real physical processor remained in supervisor state only while executing CP's own routines. Whenever CP dispatched a virtual machine, it forced the physical program status word into Real Problem State, storing the guest's virtual register state and nominal privilege level in a memory control block called VMBLOK.
User-level instructions ran bare-metal on the physical CPU. When a guest operating system attempted privileged operations like LPSW (Load Program Status Word) or SSM (Set System Mask), the hardware intercepted the instruction and trapped into CP. CP checked VMBLOK: if the guest was nominally in problem state, the violation was genuine, and CP reflected the trap back to the guest. If the guest was nominally in supervisor state, CP simulated the architectural side-effects in software and resumed execution.
I/O channels presented a harder engineering barrier. On System/360, I/O channels were independent coprocessors executing channel command words (CCWs). They fetched and stored data directly using physical memory addresses, completely bypassing the CPU's CAT associative memory box.
Whenever a guest issued a Start I/O (SIO) instruction, CP trapped the operation. As detailed by Seawright and MacKinnon (1979, pp. 12–15), CP copied the guest's entire CCW chain, translating virtual page references into physical page frames. When mapping virtual disks (Minidisks) carved out of a shared physical drive, CP dynamically recalculated cylinder offsets to keep guest writes confined to their assigned boundaries.

SIO instruction, cloning and rewriting the entire CCW chain. Photo by ArnoldReinhold, CC BY-SA 3.0, via Wikimedia Commons.This translation layer caught bugs in IBM's official codebases. During initial testing of OS/360 under CP-40, the system locked up during boot. Dick Bayles tracked the problem to OS/360's bootstrap loader, which violated the reference manual by depending on undocumented hardware timing quirks. The team wrote a two-stage IPL shim to boot the system. Years later in VM/370, this interface evolved into the DIAGNOSE instruction (and SVC 202), creating a hypercall path that allowed enlightened guests to bypass CCW translation—anticipating modern virtio paravirtualization by more than three decades.

DIAGNOSE. Photo by Scott Gerstenberger, Public Domain, via Wikimedia Commons.From 0.35 Throughput to Hardware SIE
When IBM finally shipped the System/360 Model 67 with built-in segment-and-page DAT hardware, Dick Bayles's team wrote CP-67 before their own physical machine arrived by simulating Model 67 behavior on their modified Model 40. That software became the tape that replaced TSS at Lincoln Laboratory.

Looking back at the divergence between CP and the corporate flagships at the 1982 SEAS conference, Comeau noted:
"It is further interesting to note that this stepchild of the time-sharing community now enjoys more popularity than its well-funded contemporaries, IBM’s TSS and GE’s (Honeywell) Multics. It would be extremely gratifying to attribute that success to brilliant design decisions early on in the program, but, upon reflection, the real element of success of this product was that it was not hampered by an abundance of resources, either manpower or computer power."
The evolution of virtualization revealed two distinct cost trade-offs.
The first cost barrier appeared in the 1966 CAT hardware. Comeau documented that associative memory cells cost 35 times more per bit than standard core storage (and still 8 to 10 times more in 1982). Furthermore, a fixed one-to-one mapping made sharing read-only program code across virtual machines impossible. Production architectures had to adopt standard two-level segment and page tables.
The second performance bill came when virtualization transitioned to general-purpose page tables.

With System/370 and VM/370, guest operating systems like OS/VS1 and MVS introduced their own virtual memory paging. Because mainframe DAT hardware only translated a single set of tables, VM/370 had to intercept guest updates and maintain composite Shadow Translation Tables in software. As quantified by P. H. Gum in his 1983 technical paper (pp. 532–533), resolving a single guest translation fault through software shadow tables required at least eight core memory references.
This overhead caused relative batch throughput (RBT) for paging guests to drop to 0.35 of bare-metal performance, nearly tripling execution times.
That performance penalty forced IBM to move virtualization support back into microcode and silicon. IBM introduced 13 Virtual-Machine Assist (VMA) microcode assists, restoring RBT above 0.70. This expanded to 35 assists in ECPS:VM, and culminated in 1983 with System/370-XA, which integrated over a hundred traps and shadow-table synchronization routines into a single hardware instruction: SIE (Start Interpretive Execution). Twenty years later, x86 hardware followed an identical trajectory, evolving from software shadow paging to hardware nested page tables (Intel VT-x / EPT).
Long before SIE shipped, CP-67 proved indispensable to IBM's main operating system release.
In June 1968, IBM released CP-67 as an unmaintained Type III contribution. When the initial System/370 launched in June 1970, headquarters once again omitted DAT hardware from base configurations. The Cambridge center survived only by absorbing 13 field engineers from the Boston branch whose salaries were funded by another division.
Shortly afterward, development of OS/VS2 (which became MVS) hit a wall: the paging kernel required System/370 DAT hardware, but pre-production prototypes did not yet exist. Alain Auroux and colleagues on loan from IBM France built a five-level nested virtualization harness on an existing System/360 Model 67, creating a virtual System/370 with simulated DAT hardware that allowed the MVS engineering team to debug their operating system before silicon existed.
On August 2, 1972, IBM announced dynamic address translation across the entire System/370 line and officially released VM/370 as a supported commercial product. By 1981, Creasy reported that the system had run continuously for 15 years, with more than 2,500 customer installations linking 400 networked nodes and 50,000 developers across five continents.

Comeau summarized the central architectural lesson in his 1982 address:
"The lesson to be learned when comparing CP/CMS with its contemporaries, TSS and Multics, is that it is easier to provide functions to an extendible high-performance system than it is to improve the performance of an integrated rich function system."
By defining isolation strictly at the machine instruction boundary, five engineers on a 256KB computer decoupled resource management from application runtime. That architectural divide remains the foundation of modern infrastructure, from hypervisors to microVMs like AWS Firecracker.
References
- R. J. Creasy, The Origin of the VM/370 Time-sharing System, IBM Journal of Research and Development, 25(5), September 1981, pp. 483–490.
- L. W. Comeau, CP/40 — The Origin of VM/370, Proceedings of SEAS AM82, September 1982, pp. 40–46.
- L. H. Seawright and R. A. MacKinnon, VM/370 — a study of multiplicity and usefulness, IBM Systems Journal, 18(1), 1979, pp. 4–17.
- P. H. Gum, System/370 Extended Architecture: Facilities for Virtual Machines, IBM Journal of Research and Development, 27(6), November 1983, pp. 530–544.
- Melinda Variant, VM and the VM Community: Past, Present, and Future, SHARE 89, Sessions 9059–9061, August 1997.