~/talk

Build your own virtual machine with /dev/kvm and Rust!

Talkat !!Con 2019 · 2019-06-01..06-03· [kubernetes, rust]
slides:none on file

Builds a minimal VM on Linux via /dev/kvm and shows concrete code: uses rust vmm plus crates kvm bindings, kvm_ioctls and vm-memory to map a page, inject x86 bytes, set registers, run a vCPU and handle VM exits. Demonstrates port I/O that prints a 4 (2+2) and a later audio demo that actually produces sound. Discusses VM exit cost, irqfd/ioeventfd optimizations and virtio ring-based devices and shows memory mapping as a way to share files, kernels and buffers.

AI-written summary · about

  1. 0:00Intro
  2. 0:30What are virtual machines
  3. 1:01Why is this important
  4. 1:34Containers
  5. 1:51Functions as Service Platforms
  6. 2:03Firecracker
  7. 2:31Dev KVM
  8. 2:49Overview
  9. 3:07VM Exit
  10. 3:27Demo
  11. 3:37Virtual Serial Port
  12. 3:49Disclaimer
  13. 4:01Crates
  14. 4:16Create a virtual machine
  15. 4:29Create memory region
  16. 4:49Write raw x86 code
  17. 5:12Add memory region
  18. 5:32Create virtual CPU
  19. 5:45Instruction pointer
  20. 5:59Virtual machine inner loop
  21. 6:29Virtual machine demo
  22. 6:50VM exits
  23. 7:11Verdi
  24. 7:33Firecracker VM
  25. 7:55Memory Mapping
  26. 8:22Load Code
  27. 8:45Virtualizations
  28. 9:19Summary Summary
  29. 9:58Building Music
  30. 10:32Noise
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.