Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Shanker Donthineni
Hi Marc, On 08/30/2016 05:54 AM, Marc Zyngier wrote: On 30/08/16 10:55, Christoffer Dall wrote: On Mon, Aug 29, 2016 at 10:51:14PM -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

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Shanker Donthineni
Hi Marc, On 08/30/2016 05:54 AM, Marc Zyngier wrote: On 30/08/16 10:55, Christoffer Dall wrote: On Mon, Aug 29, 2016 at 10:51:14PM -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

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Marc Zyngier
On 30/08/16 10:55, Christoffer Dall wrote: > On Mon, Aug 29, 2016 at 10:51:14PM -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

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Marc Zyngier
On 30/08/16 10:55, Christoffer Dall wrote: > On Mon, Aug 29, 2016 at 10:51:14PM -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

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Christoffer Dall
On Mon, Aug 29, 2016 at 10:51:14PM -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

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Christoffer Dall
On Mon, Aug 29, 2016 at 10:51:14PM -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

[PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-29 Thread Shanker Donthineni
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

[PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-29 Thread Shanker Donthineni
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