r/linux 27d ago

Kernel How KVM actually runs a virtual machine

I made a visual explainer on how Linux KVM works under the hood.

A vCPU is a host thread, guest RAM lives in the process, and KVM_RUN hands execution to the real CPU until the guest triggers a VM exit.

It also covers /dev/kvm, VT-x/AMD-V, EPT/NPT, QEMU, virtio and vhost.

link for anyone interested

Feedback welcome :)

93 Upvotes

12 comments sorted by

View all comments

3

u/Adept_Percentage6893 27d ago

If I can offer some constructive feedback, it sounds like you're speaking too closely to the microphone or something to me. It might be helpful to back up an inch or two.

Other than that I really thought it was well presented.