diff options
author | Shanker Donthineni <shankerd@codeaurora.org> | 2016-08-30 21:08:32 -0500 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-09-08 12:53:00 +0200 |
commit | 68381b2b00f728a6c910e777bd62986c951323a3 (patch) | |
tree | 7cb8545925f173dc1968a519390237e11847fa01 /virt/kvm/arm/vgic/vgic-irqfd.c | |
parent | 1fe0009833892f950d6955b8c77c5b00e7700802 (diff) | |
download | linux-68381b2b00f728a6c910e777bd62986c951323a3.tar.gz linux-68381b2b00f728a6c910e777bd62986c951323a3.tar.bz2 linux-68381b2b00f728a6c910e777bd62986c951323a3.zip |
arm64: KVM: Optimize __guest_enter/exit() to save a few instructions
We are doing an unnecessary stack push/pop operation when restoring
the guest registers x0-x18 in __guest_enter(). This patch saves the
two instructions by using x18 as a base register. No need to store
the vcpu context pointer in stack because it is redundant, the same
information is available in tpidr_el2. The function __guest_exit()
calling convention is slightly modified, caller only pushes the regs
x0-x1 to stack instead of regs x0-x3.
Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-irqfd.c')
0 files changed, 0 insertions, 0 deletions