Thread (5 messages) 5 messages, 2 authors, 2016-08-29

[PATCH] arm64: KVM: Save two instructions in __guest_enter()

From: Christoffer Dall <hidden>
Date: 2016-08-25 13:31:25
Also in: kvmarm, lkml

Hi Shanker,

On Tue, Aug 09, 2016 at 08:15:36PM -0500, Shanker Donthineni wrote:
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 and not
being used anywhere, the same information is available in tpidr_el2.
Does this have any measureable benefit?

Thanks,
-Christoffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help