[PATCH v4 04/12] ARM: KVM: introduce kvm_p*d_addr_end

2014-02-18 Thread Marc Zyngier
The use of p*d_addr_end with stage-2 translation is slightly dodgy, as the IPA is 40bits, while all the p*d_addr_end helpers are taking an unsigned long (arm64 is fine with that as unligned long is 64bit). The fix is to introduce 64bit clean versions of the same helpers, and use them in the

Re: [PATCH v4 04/12] ARM: KVM: introduce kvm_p*d_addr_end

2014-02-18 Thread Catalin Marinas
On Tue, Feb 18, 2014 at 03:27:25PM +, Marc Zyngier wrote: The use of p*d_addr_end with stage-2 translation is slightly dodgy, as the IPA is 40bits, while all the p*d_addr_end helpers are taking an unsigned long (arm64 is fine with that as unligned long is 64bit). The fix is to introduce

Re: [PATCH v4 04/12] ARM: KVM: introduce kvm_p*d_addr_end

2014-02-18 Thread Christoffer Dall
On Tue, Feb 18, 2014 at 03:27:25PM +, Marc Zyngier wrote: The use of p*d_addr_end with stage-2 translation is slightly dodgy, as the IPA is 40bits, while all the p*d_addr_end helpers are taking an unsigned long (arm64 is fine with that as unligned long is 64bit). The fix is to introduce