perf_kvm_stat_report
Analyze KVM VM exit reasons to diagnose virtualization overhead, showing counts and time per exit type to identify idle guests, slow device emulation, or memory mapping churn.
Instructions
KVM virtual machine exit analysis: shows VM exit reasons, counts, and time per exit type.
Use this to diagnose virtualization overhead — excessive HLT exits indicate idle guests, I/O exits indicate slow device emulation, EPT violations indicate memory mapping churn.
Key parameters:
key: sort by 'sample' (count), 'time', 'max', 'min'.
event: filter to specific exit type (e.g. 'HLT').
vcpu: filter to specific vCPU.
guest/host: filter to guest or host events.
Output: exit reason table with count, time, and percentage. Requires: perf kvm stat record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | CPUs to filter | |
| key | No | Sort key | |
| pid | No | Filter by PID | |
| host | No | Trace host events | |
| sort | No | Sort by key(s) | |
| vcpu | No | Filter by vCPU | |
| event | No | Filter by KVM exit event type | |
| force | No | Don't complain, do it | |
| guest | No | Trace guest events | |
| input | Yes | Path to perf.data.guest file | |
| output | No | Output file name | |
| display | No | Events to display | |
| verbose | No | Verbosity level | |
| all_cpus | No | System-wide collection from all CPUs | |
| guest_code | No | Display guest code | |
| guestmount | No | Guest OS root file system mount point | |
| mmap_pages | No | Number of mmap pages | |
| guestmodules | No | Guest modules file | |
| guestvmlinux | No | Guest vmlinux pathname | |
| guestkallsyms | No | Guest kallsyms file | |
| proc_map_timeout | No | Per-thread proc mmap processing timeout in ms |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |