summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorShanker Donthineni <shankerd@codeaurora.org>2016-08-31 04:08:32 +0200
committerChristoffer Dall <christoffer.dall@linaro.org>2016-09-08 12:53:00 +0200
commit68381b2b00f728a6c910e777bd62986c951323a3 (patch)
tree7cb8545925f173dc1968a519390237e11847fa01 /virt
parentKVM: arm/arm64: Rename vgic_attr_regs_access to vgic_attr_regs_access_v2 (diff)
downloadlinux-68381b2b00f728a6c910e777bd62986c951323a3.tar.xz
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')
0 files changed, 0 insertions, 0 deletions