Testing VM PMU Event Collection
Before installing the perf tool, you need to configure the Yum repository on the VM.
- Start and log in to the VM.
1virsh start <vmname> --console
- Install the perf tool.
1yum -y install perf
- Collect basic VM kernel events for 10 seconds. If the following information is displayed, the PMU virtualization feature has been enabled.
1perf stat -a sleep 10

Parent topic: Enabling and Verification