summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm
diff options
context:
space:
mode:
authorAlexandru Elisei <alexandru.elisei@arm.com>2021-04-09 16:21:54 +0100
committerMarc Zyngier <maz@kernel.org>2021-04-11 09:46:13 +0100
commit96f4f6809beec1bb2338e1aeac408e6a733f8135 (patch)
treeceac3f5e3722d7006c8bf2500621617c7e97b55c /arch/arm64/include/asm
parent13611bc80d3da162aaf32b01ceffc804e027d406 (diff)
KVM: arm64: Don't advertise FEAT_SPE to guests
Even though KVM sets up MDCR_EL2 to trap accesses to the SPE buffer and sampling control registers and to inject an undefined exception, the presence of FEAT_SPE is still advertised in the ID_AA64DFR0_EL1 register, if the hardware supports it. Getting an undefined exception when accessing a register usually happens for a hardware feature which is not implemented, and indeed this is how PMU emulation is handled when the virtual machine has been created without the KVM_ARM_VCPU_PMU_V3 feature. Let's be consistent and never advertise FEAT_SPE, because KVM doesn't have support for emulating it yet. Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210409152154.198566-3-alexandru.elisei@arm.com
Diffstat (limited to 'arch/arm64/include/asm')
0 files changed, 0 insertions, 0 deletions