diff options
author | Marc Zyngier <maz@kernel.org> | 2021-03-05 18:52:51 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-06 04:18:40 -0500 |
commit | f27647b588c13647a60074b5a8dd39a86d919a1d (patch) | |
tree | 99a47bf8bf42dc6994eb98191dc0dd4dbbff080b /tools/perf/scripts/python/stackcollapse.py | |
parent | 6b5b368fccd7109b052e45af8ba1464c8d140a49 (diff) |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions