KVM: arm64: Avoid repetitive stack access on host EL1 to EL2 exception
authorMarc Zyngier <maz@kernel.org>
Sat, 24 Oct 2020 09:56:55 +0000 (10:56 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 27 Nov 2020 11:32:44 +0000 (11:32 +0000)
commit83fa381f66ccb025f9e182d0b2ef9cd53c1f33ab
tree207b2b322e52a2bac4d1d069a17e6c141f3116b0
parent29052f1b92f2bcb0419c544459f4c919bfb20898
KVM: arm64: Avoid repetitive stack access on host EL1 to EL2 exception

Registers x0/x1 get repeateadly pushed and poped during a host
HVC call. Instead, leave the registers on the stack, trading
a store instruction on the fast path for an add on the slow path.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/host.S