Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-11-29 Thread Christoffer Dall
Hi James, On Mon, Nov 27, 2017 at 11:11:20AM +, James Morse wrote: > On 23/11/17 20:59, Christoffer Dall wrote: > > On Thu, Oct 12, 2017 at 04:49:44PM +0100, Marc Zyngier wrote: > >> On 12/10/17 11:41, Christoffer Dall wrote: > >>> We already have the percpu area for the host cpu state, which

Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-11-27 Thread James Morse
Hi Christoffer, On 23/11/17 20:59, Christoffer Dall wrote: > On Thu, Oct 12, 2017 at 04:49:44PM +0100, Marc Zyngier wrote: >> On 12/10/17 11:41, Christoffer Dall wrote: >>> We already have the percpu area for the host cpu state, which points to >>> the VCPU, so there's no need to store the VCPU

Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-11-23 Thread Christoffer Dall
Hi Marc, On Thu, Oct 12, 2017 at 04:49:44PM +0100, Marc Zyngier wrote: > On 12/10/17 11:41, Christoffer Dall wrote: > > We already have the percpu area for the host cpu state, which points to > > the VCPU, so there's no need to store the VCPU pointer on the stack on > > every context switch. We

Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-11-07 Thread Christoffer Dall
On Mon, Nov 06, 2017 at 06:22:51PM +0100, Andrew Jones wrote: > On Thu, Oct 12, 2017 at 12:41:05PM +0200, Christoffer Dall wrote: > > We already have the percpu area for the host cpu state, which points to > > the VCPU, so there's no need to store the VCPU pointer on the stack on > > every context

Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-10-13 Thread Marc Zyngier
On 12/10/17 18:02, Christoffer Dall wrote: > On Thu, Oct 12, 2017 at 04:49:44PM +0100, Marc Zyngier wrote: >> On 12/10/17 11:41, Christoffer Dall wrote: >>> We already have the percpu area for the host cpu state, which points to >>> the VCPU, so there's no need to store the VCPU pointer on the

Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-10-12 Thread Christoffer Dall
On Thu, Oct 12, 2017 at 04:49:44PM +0100, Marc Zyngier wrote: > On 12/10/17 11:41, Christoffer Dall wrote: > > We already have the percpu area for the host cpu state, which points to > > the VCPU, so there's no need to store the VCPU pointer on the stack on > > every context switch. We can be a

Re: [PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-10-12 Thread Marc Zyngier
On 12/10/17 11:41, Christoffer Dall wrote: > We already have the percpu area for the host cpu state, which points to > the VCPU, so there's no need to store the VCPU pointer on the stack on > every context switch. We can be a little more clever and just use > tpidr_el2 for the percpu offset and

[PATCH 01/37] KVM: arm64: Avoid storing the vcpu pointer on the stack

2017-10-12 Thread Christoffer Dall
We already have the percpu area for the host cpu state, which points to the VCPU, so there's no need to store the VCPU pointer on the stack on every context switch. We can be a little more clever and just use tpidr_el2 for the percpu offset and load the VCPU pointer from the host context. This