linux/arch/arm64/kvm/hyp
Suzuki K Poulose d2602bb4f5 KVM: arm64: Move SPE availability check to VCPU load
At the moment, we check the availability of SPE 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. This will also be useful
for adding the TRBE support.

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>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210405164307.1720226-7-suzuki.poulose@arm.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2021-04-06 16:05:20 -06:00
..
include KVM: arm64: Don't access PMSELR_EL0/PMUSERENR_EL0 when no PMU is available 2021-03-06 04:18:40 -05:00
nvhe KVM: arm64: Move SPE availability check to VCPU load 2021-04-06 16:05:20 -06:00
vhe KVM: arm64: Ensure I-cache isolation between vcpus of a same VM 2021-03-09 17:58:56 +00:00
aarch32.c KVM: arm64: Move kvm_vcpu_trap_il_is32bit into kvm_skip_instr32() 2020-11-10 08:34:24 +00:00
entry.S KVM: arm64: Don't use cbz/adr with external symbols 2021-03-09 08:48:24 +00:00
exception.c KVM: arm64: Inject AArch32 exceptions from HYP 2020-11-10 08:34:26 +00:00
fpsimd.S KVM: arm64: Remove __hyp_text macro, use build rules instead 2020-07-05 18:38:45 +01:00
hyp-entry.S KVM: arm64: make the hyp vector table entries local 2021-02-24 11:20:43 +00:00
Makefile KVM: arm64: Allocate hyp vectors statically 2020-11-16 10:43:05 +00:00
pgtable.c KVM: arm64: Fix range alignment when walking page tables 2021-03-06 04:18:41 -05:00
vgic-v2-cpuif-proxy.c KVM: arm64: Remove hyp_symbol_addr 2021-01-23 14:01:00 +00:00
vgic-v3-sr.c KVM: arm64: Workaround firmware wrongly advertising GICv2-on-v3 compatibility 2021-03-06 04:18:41 -05:00