]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3de5e334cf6f0e1b7a3fa482e11b03cc86ab5fa4
tree207b2b322e52a2bac4d1d069a17e6c141f3116b0
parentd7ee042cc8deea0a1f5f9d3bf8635c46e0409b4c
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