FULL AI ANALYSIS

QEMU/KVM guests log 'unexpected NMI' and suffer network stalls after host resume with nested KVM enabled

Generated Oct 23, 2026, 9:39:07 AM

Analysis summary

Nested KVM plus host suspend can leave VMCS or CPU virtualization state inconsistent after resume, causing NMIs and watchdog triggers in guests. IOMMU and VFIO mappings may not be re-established properly, causing virtio queues to stall. The fact that restarting libvirt or guests restores networking points to userspace/kernel resources needing reinitialization post‑resume. Disabling nested mitigates the issue, implicating VMX state handling by the kernel/QEMU across suspend/resume boundaries.

Possible causes

Host kernel or KVM module fails to restore nested VMX state (VMCS) on resume, leading to guest NMIs and stalled virtio queues

75%

IOMMU/VFIO mappings not reattached correctly after resume, breaking DMA for virtio-net devices

45%

QEMU process lost access to host IRQ routing post-resume and needs rebind of eventfds leading to stalled packet handling

40%

Microcode/CPU bug affecting VMCS shadowing across S3/S2idle cycles with nested enabled

20%

Suggested fixes

1

Diagnostic step 1

Avoid suspend while VMs with nested KVM are running; use 'virsh shutdown' or migrate VMs before host suspend as a mitigation

2

Diagnostic step 2

Collect kernel logs and 'dmesg -T' before and after resume, and capture /sys/module/kvm/parameters and IOMMU dmesg to file for vendor escalation

3

Diagnostic step 3

Try unloading and reloading kvm_intel (modprobe -r kvm_intel; modprobe kvm_intel) after resume to see if reinitializing KVM state recovers guests without full libvirt restart

4

Diagnostic step 4

If using VFIO, unbind and rebind devices after resume to restore DMA mappings; scriptable via sysfs but be cautious with live VMs

5

Diagnostic step 5

Consider upgrading to a kernel/QEMU release with known nested KVM resume fixes; if issue persists, open a kernel bug with reproducible steps and logs