Skip to content
Commit be8bfcea authored by Suzuki Poulose's avatar Suzuki Poulose Committed by Qais Yousef
Browse files

ANDROID: kvm: arm64: Move SPE/TRBE availability check to VCPU load

At the moment, we check the availability of SPE/TRBE on the given
CPU (i.e, SPE is implemented and is allowed at the host) during
every guest entry. This can be optimized a bit by moving the
check to vcpu_load time and recording the availability of the
feature on the current CPU via a new flag.

Bug: 174685394
Cc: Marc Zyngier <maz@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Alexandru Elisei <Alexandru.Elisei@arm.com>
Cc: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/linux-arm-kernel/20210405164307.1720226-7-suzuki.poulose@arm.com/


Signed-off-by: Suzuki Poulose's avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Qais Yousef's avatarQais Yousef <qais.yousef@arm.com>
Change-Id: Ifa6efb97532667b4c4999865031a9bb8576a8100
parent 84b08d7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment