Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

KVM

Direct answer

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.

When to use this

Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → KVM. Establish effective host/runtime state before changing configuration.

First 30 seconds

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.

Operational verification

CPU VT → kvm module → /dev/kvm → QEMU

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
kvm-qemu
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformkvm-qemu
Scope / prerequisiteUse this topic when the symptom or planned change has been narrowed to KVM / QEMU → KVM. Establish effective host/runti…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • lsmod | grep kvm — kvm and kvm_intel/kvm_amd
  • ls -l /dev/kvm — device present
  • virt-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.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor dockvm-qemu current

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%
Terminology layer

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.

Aliases that resolve here
kernel based virtual machine/dev/kvmkvm acceleratorlinux kvm
Embedded reference data

Quick lookup tables

KVM / QEMU → KVM reference map

Fast operational boundaries and evidence limits for KVM / QEMU → KVM.

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU → KVM definition or configuration is presentConfigured state does not prove runtime behavior
RuntimeRelevant KVM/QEMU/libvirt object or process is active without matching errorsRuntime state does not prove dependencies or guest outcome
DependencyHost CPU/memory, storage, network or device backend required by this path is healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after the change or observationRequired for end-to-end closure
Confirmation

Confirm action

Continue?