+4
−1
Loading
ID_AA64DFR0_EL1.PMUVer is an unsigned field, so this skips initialization of host_data_ptr(nr_event_counters) for PMUv3 for Armv8.8 onwards as they appear as negative values. Fix it by reading it as unsigned. Now ID_AA64DFR0_EL1_PMUVer_IMP_DEF needs to be special cased, so use pmuv3_implemented() which already does it. Fixes: 2417218f ("KVM: arm64: Get rid of __kvm_get_mdcr_el2() and related warts") Signed-off-by:James Clark <james.clark@linaro.org> Reviewed-by:
Marc Zyngier <maz@kernel.org> Reviewed-by:
Colton Lewis <coltonlewis@google.com> Signed-off-by:
Will Deacon <will@kernel.org>