We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d56bdce commit 8681573Copy full SHA for 8681573
arch/arm64/kvm/pmu-emul.c
@@ -668,7 +668,8 @@ void kvm_host_pmu_init(struct arm_pmu *pmu)
668
{
669
struct arm_pmu_entry *entry;
670
671
- if (pmu->pmuver == 0 || pmu->pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF)
+ if (pmu->pmuver == ID_AA64DFR0_EL1_PMUVer_NI ||
672
+ pmu->pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF)
673
return;
674
675
mutex_lock(&arm_pmus_lock);
@@ -721,7 +722,7 @@ static struct arm_pmu *kvm_pmu_probe_armpmu(void)
721
722
723
if (event->pmu) {
724
pmu = to_arm_pmu(event->pmu);
- if (pmu->pmuver == 0 ||
725
726
pmu->pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF)
727
pmu = NULL;
728
}
0 commit comments