Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Marc Zyngier
On 30/06/16 12:10, Ard Biesheuvel wrote: > On 30 June 2016 at 13:02, Marc Zyngier wrote: >> On 30/06/16 11:42, Ard Biesheuvel wrote: >>> On 30 June 2016 at 12:16, Marc Zyngier wrote: On 30/06/16 10:22, Marc Zyngier wrote: > On 28/06/16 13:42,

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Ard Biesheuvel
On 30 June 2016 at 13:02, Marc Zyngier wrote: > On 30/06/16 11:42, Ard Biesheuvel wrote: >> On 30 June 2016 at 12:16, Marc Zyngier wrote: >>> On 30/06/16 10:22, Marc Zyngier wrote: On 28/06/16 13:42, Christoffer Dall wrote: > On Tue, Jun 07,

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Marc Zyngier
On 30/06/16 11:42, Ard Biesheuvel wrote: > On 30 June 2016 at 12:16, Marc Zyngier wrote: >> On 30/06/16 10:22, Marc Zyngier wrote: >>> On 28/06/16 13:42, Christoffer Dall wrote: On Tue, Jun 07, 2016 at 11:58:25AM +0100, Marc Zyngier wrote: > As we move towards a

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Ard Biesheuvel
On 30 June 2016 at 12:16, Marc Zyngier wrote: > On 30/06/16 10:22, Marc Zyngier wrote: >> On 28/06/16 13:42, Christoffer Dall wrote: >>> On Tue, Jun 07, 2016 at 11:58:25AM +0100, Marc Zyngier wrote: As we move towards a selectable HYP VA range, it is obvious that

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Christoffer Dall
On Thu, Jun 30, 2016 at 11:16:44AM +0100, Marc Zyngier wrote: > On 30/06/16 10:22, Marc Zyngier wrote: > > On 28/06/16 13:42, Christoffer Dall wrote: > >> On Tue, Jun 07, 2016 at 11:58:25AM +0100, Marc Zyngier wrote: > >>> As we move towards a selectable HYP VA range, it is obvious that > >>> we

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Marc Zyngier
On 30/06/16 10:22, Marc Zyngier wrote: > On 28/06/16 13:42, Christoffer Dall wrote: >> On Tue, Jun 07, 2016 at 11:58:25AM +0100, Marc Zyngier wrote: >>> As we move towards a selectable HYP VA range, it is obvious that >>> we don't want to test a variable to find out if we need to use >>> the

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-30 Thread Marc Zyngier
On 28/06/16 13:42, Christoffer Dall wrote: > On Tue, Jun 07, 2016 at 11:58:25AM +0100, Marc Zyngier wrote: >> As we move towards a selectable HYP VA range, it is obvious that >> we don't want to test a variable to find out if we need to use >> the bottom VA range, the top VA range, or use the

Re: [PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-28 Thread Christoffer Dall
On Tue, Jun 07, 2016 at 11:58:25AM +0100, Marc Zyngier wrote: > As we move towards a selectable HYP VA range, it is obvious that > we don't want to test a variable to find out if we need to use > the bottom VA range, the top VA range, or use the address as is > (for VHE). > > Instead, we can

[PATCH 05/15] arm64: KVM: Refactor kern_hyp_va/hyp_kern_va to deal with multiple offsets

2016-06-07 Thread Marc Zyngier
As we move towards a selectable HYP VA range, it is obvious that we don't want to test a variable to find out if we need to use the bottom VA range, the top VA range, or use the address as is (for VHE). Instead, we can expand our current helpers to generate the right mask or nop with code