diff options
author | 2021-03-05 18:52:51 +0000 | |
---|---|---|
committer | 2021-03-06 04:18:40 -0500 | |
commit | f27647b588c13647a60074b5a8dd39a86d919a1d (patch) | |
tree | 99a47bf8bf42dc6994eb98191dc0dd4dbbff080b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm64: Turn kvm_arm_support_pmu_v3() into a static key (diff) | |
download | wireguard-linux-f27647b588c13647a60074b5a8dd39a86d919a1d.tar.xz wireguard-linux-f27647b588c13647a60074b5a8dd39a86d919a1d.zip |
KVM: arm64: Don't access PMSELR_EL0/PMUSERENR_EL0 when no PMU is available
When running under a nesting hypervisor, it isn't guaranteed that
the virtual HW will include a PMU. In which case, let's not try
to access the PMU registers in the world switch, as that'd be
deadly.
Reported-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Link: https://lore.kernel.org/r/20210209114844.3278746-3-maz@kernel.org
Message-Id: <20210305185254.3730990-6-maz@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions