Save this video free

ECE344 Fall 2026 (Sec 1) Lec 30 - Virtual Machines

Jon Eyolfson · 50:34 · Watch on YouTube

Part of University of Toronto ECE 344. See all 26 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Virtual machines let multiple guest operating systems share one physical machine while a hypervisor controls hardware, schedules virtual CPUs, and isolates memory and devices. Jon Eyolfson explains software virtualization techniques such as trap-and-emulate and binary translation, hardware support including Intel VT-x and AMD-V, and practical mechanisms such as KVM, nested page tables, virtio, and copy-on-write disk images. The lecture concludes by contrasting virtual machines, which run multiple kernels, with containers, which isolate processes on one kernel.

Key takeaways

Chapters

0:00 Guest Operating Systems, Hosts, and Hypervisors
4:00 Type 1 and Type 2 Hypervisors, Plus Emulation
10:15 Why Virtualize, and How Trap-and-Emulate Works
16:40 x86 Binary Translation and Its Performance Cost
21:20 Intel VT-x, AMD-V, VM Exits, and Linux KVM
29:35 Two-Level CPU Scheduling and Overcommitment
34:07 Nested Page Tables and Guest Memory Translation
39:58 Memory Overcommitment, Ballooning, and Copy-on-Write Sharing
42:50 Emulated Devices, Virtio, and Hypercalls
45:58 Sparse QCOW2 Disks, Application Isolation, and Containers

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

1:41 I >> All right. We are at our second last topic, virtual machines. So, we can take our virtualization as we have learned it and go one step further. Oops. So, [snorts] recall all the way back in lecture two. Feels like eons ago. We had our CPU with different modes. I said there's user mode. That's what

2:29 we're all familiar with. All our applications and library run in this mode. Least privileged doesn't have access to change hardware at all. Then we introduced supervisor mode or kernel mode, whatever you want to call it. Generally the same thing. And we said the kernel is the thing that controls the hardware. But I was like there's other privilege levels. Let's not worry about them for now. Below kernel mode, there's something called H mode and that is where virtual machines kind of live that is even more privileged than kernel mode. Get into what that means in this lecture. And then below that is machine mode, which is uh 25 243. That's where you are in machine mode where you've access to all the hardware. That's where boot loader code and firmware code would be.

3:17 So, today we get to run whole kernels. They'll be virtualized. So, each operating system is going to believe it owns the whole machine like with programs. Each program thinks it owns all of memory and is the only thing running on CPU cores. So, we're just going to take virtualization and step it up. So, virtual machines, same idea. It abstracts a whole virtual machine or a whole machine where our goal is to run multiple operating systems on a single machine where each operating system believes it is the only thing running. So, they all think they have exclusive control over the hardware, which they do

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jon Eyolfson.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.