
Map Guest Memory With KVM_SET_USER_MEMORY_REGION
Register guest RAM, ROM and holes with KVM_SET_USER_MEMORY_REGION, covering slot rules, read-only slots, dirty logging and slot removal, with C code.
QEMU, KVM and hypervisors, writing emulators from CHIP-8 to RISC-V, and building containers from namespaces and cgroups by hand.

Register guest RAM, ROM and holes with KVM_SET_USER_MEMORY_REGION, covering slot rules, read-only slots, dirty logging and slot removal, with C code.

Build a small KVM hypervisor in C that loads a flat 16-bit guest binary, serves a serial port and a result port, counts exits and halts cleanly.

Find why a KVM guest is slow or stuck by recording kvm tracepoints with trace-cmd and summarizing VM exits by reason with perf kvm stat, with sample output.

After bitbake core-image-minimal finishes, runqemu boots it in QEMU with no board. Here are the options for graphics, networking and getting out again.

See how KVM reuses the Linux scheduler, memory manager, MMU notifiers, eventfds and cgroups instead of building its own, and where to read each in the source.

Trace what QEMU does with /dev/kvm, from open and KVM_CREATE_VM to the anonymous VM and vCPU file descriptors, using strace and /proc to see each step.

Prepare a Linux machine for KVM and QEMU work as a normal user: packages, the kvm group, headers, tracing access and a smoke test, with no sudo for daily use.

Enable nested virtualization on a KVM host, pass the vmx or svm flag to a guest with -cpu host and start a second-level VM, with the checks that prove it works.

Full virtualization runs an unmodified guest, while paravirtualization gives the guest drivers that call the hypervisor. See where virtio and kvmclock fit.

How VMX and SVM add a guest mode to x86 processors, what the VMCS and VMCB hold, why VM exits happen and how nested paging removes shadow page tables.

Find out whether your CPU supports hardware virtualization on Linux by reading the vmx and svm flags, running kvm-ok and checking that /dev/kvm exists.

Type 1 hypervisors run on bare metal and type 2 run inside a host OS. See the real differences, where KVM falls, and which one fits your work.
We send one email when a new post is published. No spam.