aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2021-03-05 18:52:51 +0000
committerPaolo Bonzini <[email protected]>2021-03-06 04:18:40 -0500
commitf27647b588c13647a60074b5a8dd39a86d919a1d (patch)
tree99a47bf8bf42dc6994eb98191dc0dd4dbbff080b /lib/mpi/mpiutil.c
parent6b5b368fccd7109b052e45af8ba1464c8d140a49 (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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Alexandru Elisei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions