-
由 Andrew Murray 提交于
The kvm_vcpu_pmu_{read,write}_evtype_direct functions do not handle the cycle counter use-case, this leads to inaccurate counts and a WARN message when using perf with the cycle counter (-e cycle). Let's fix this by adding a use case for pmccfiltr_el0. Fixes: 39e3406a ("arm64: KVM: Avoid isb's by using direct pmxevtyper sysreg") Reported-by: NSuzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: NAndrew Murray <andrew.murray@arm.com> Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>21137301