Re: [PATCH v4 17/19] arm64: KVM: Dynamically compute the HYP VA mask

2018-02-15 Thread Marc Zyngier
On 18/01/18 20:28, Christoffer Dall wrote: > On Thu, Jan 04, 2018 at 06:43:32PM +, Marc Zyngier wrote: >> As we're moving towards a much more dynamic way to compute our >> HYP VA, let's express the mask in a slightly different way. >> >> Instead of comparing the idmap position to the "low" VA

Re: [PATCH v4 17/19] arm64: KVM: Dynamically compute the HYP VA mask

2018-01-18 Thread Christoffer Dall
On Thu, Jan 04, 2018 at 06:43:32PM +, Marc Zyngier wrote: > As we're moving towards a much more dynamic way to compute our > HYP VA, let's express the mask in a slightly different way. > > Instead of comparing the idmap position to the "low" VA mask, > we directly compute the mask by taking

[PATCH v4 17/19] arm64: KVM: Dynamically compute the HYP VA mask

2018-01-04 Thread Marc Zyngier
As we're moving towards a much more dynamic way to compute our HYP VA, let's express the mask in a slightly different way. Instead of comparing the idmap position to the "low" VA mask, we directly compute the mask by taking into account the idmap's (VA_BIT-1) bit. No functionnal change.