Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → KVM. Establish effective host/runtime state before changing configuration.
KVM
KVM turns Linux into a virtualization host by using CPU virtualization extensions and kernel interfaces for vCPU execution, memory mappings and interrupt/device acceleration while QEMU remains the userspace VMM/device model.
1. KVM is the Linux kernel hypervisor module.
2. Needs VT-x/AMD-V.
3. /dev/kvm permissions for users.
4. virt-host-validate checks IOMMU, cgroups, etc.
5. Kernel updates update KVM.
CPU VT → kvm module → /dev/kvm → QEMU
Context & applicabilityCommon mistakes · platform/version boundaries
Presence of /dev/kvm or loaded KVM modules shows host capability, not that a given VM is using KVM correctly or that the guest workload is healthy.
Next check: Continue from the first failing step into the responsible KVM/QEMU or specialist branch, then verify the original workload after a minimal controlled change.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
CPU virtualization extensions → firmware → Linux KVM modules/device → QEMU KVM accelerator → vCPU execution → guest scheduler → workload
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- KVM enabled in the kernel ≠ a specific QEMU VM using KVM acceleration.
- CPU virtualization extensions present ≠ enabled in firmware or usable by the kernel.
- KVM accelerates guest execution but does not replace QEMU device models or backing storage/network paths.
- Near-native CPU execution ≠ near-native application performance when memory, I/O or scheduling is constrained.
lsmod | grep kvm— kvm and kvm_intel/kvm_amdls -l /dev/kvm— device presentvirt-host-validate qemu— host readiness
ReferenceWhy it matters1 section · depth on demand
In depth
KVM turns the Linux kernel into a hypervisor (kvm.ko plus kvm_intel/kvm_amd). Each VM is a QEMU process; its vCPUs are threads scheduled by the normal Linux scheduler, and guest memory is ordinary process memory.
lsmod | grep kvm
ls -l /dev/kvm
virt-host-validate # checks CPU extensions, IOMMU, cgroups
Because VMs are Linux processes, standard tools apply: top, perf, cgroups for resource control, systemd slices (machine.slice), SELinux/AppArmor (sVirt) for isolation.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Presence of /dev/kvm or loaded KVM modules shows host capability, not that a given VM is using KVM correctly or that the guest workload is healthy.
Reference
lsmod | grep kvm
ls -l /dev/kvm
virt-host-validate
virt-host-validate checks KVM availability, IOMMU and cgroup support.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in KVM / QEMU → KVM. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.qemu.org/docs/master/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
KVM / QEMU → KVM reference map
Fast operational boundaries and evidence limits for KVM / QEMU → KVM.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → KVM definition or configuration is present | Configured state does not prove runtime behavior |
| Runtime | Relevant KVM/QEMU/libvirt object or process is active without matching errors | Runtime state does not prove dependencies or guest outcome |
| Dependency | Host CPU/memory, storage, network or device backend required by this path is healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after the change or observation | Required for end-to-end closure |