Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-19 Thread Christoffer Dall
On Mon, Aug 18, 2014 at 03:30:58PM -0500, Joel Schopp wrote: #endif /* __ARM_KVM_MMU_H__ */ diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 16e7994..70f0f02 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -521,6 +521,7 @@ int create_hyp_io_mappings(void *from, void

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-19 Thread Joel Schopp
On 08/19/2014 07:22 AM, Christoffer Dall wrote: On Mon, Aug 18, 2014 at 03:30:58PM -0500, Joel Schopp wrote: #endif /* __ARM_KVM_MMU_H__ */ diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 16e7994..70f0f02 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -521,6 +521,7

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-19 Thread Christoffer Dall
On Tue, Aug 19, 2014 at 09:05:09AM -0500, Joel Schopp wrote: On 08/19/2014 07:22 AM, Christoffer Dall wrote: On Mon, Aug 18, 2014 at 03:30:58PM -0500, Joel Schopp wrote: #endif /* __ARM_KVM_MMU_H__ */ diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 16e7994..70f0f02 100644

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-19 Thread Joel Schopp
On 08/19/2014 09:37 AM, Christoffer Dall wrote: On Tue, Aug 19, 2014 at 09:05:09AM -0500, Joel Schopp wrote: On 08/19/2014 07:22 AM, Christoffer Dall wrote: On Mon, Aug 18, 2014 at 03:30:58PM -0500, Joel Schopp wrote: #endif /* __ARM_KVM_MMU_H__ */ diff --git a/arch/arm/kvm/mmu.c

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-19 Thread Christoffer Dall
On Tue, Aug 19, 2014 at 09:53:51AM -0500, Joel Schopp wrote: On 08/19/2014 09:37 AM, Christoffer Dall wrote: On Tue, Aug 19, 2014 at 09:05:09AM -0500, Joel Schopp wrote: On 08/19/2014 07:22 AM, Christoffer Dall wrote: On Mon, Aug 18, 2014 at 03:30:58PM -0500, Joel Schopp wrote: #endif

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-18 Thread Joel Schopp
#endif /* __ARM_KVM_MMU_H__ */ diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 16e7994..70f0f02 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -521,6 +521,7 @@ int create_hyp_io_mappings(void *from, void *to, phys_addr_t phys_addr) */ int kvm_alloc_stage2_pgd(struct

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-13 Thread Christoffer Dall
On Tue, Aug 12, 2014 at 06:05:21PM +0200, Christoffer Dall wrote: On Mon, Aug 11, 2014 at 03:38:23PM -0500, Joel Schopp wrote: The current VTTBR_BADDR_MASK only masks 39 bits, which is broken on current systems. Rather than just add a bit it seems like a good time to also set things at

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-13 Thread Jungseok Lee
On Aug 13, 2014, at 8:33 PM, Christoffer Dall wrote: On Tue, Aug 12, 2014 at 06:05:21PM +0200, Christoffer Dall wrote: On Mon, Aug 11, 2014 at 03:38:23PM -0500, Joel Schopp wrote: The current VTTBR_BADDR_MASK only masks 39 bits, which is broken on current systems. Rather than just add a bit

Re: [PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-12 Thread Christoffer Dall
On Mon, Aug 11, 2014 at 03:38:23PM -0500, Joel Schopp wrote: The current VTTBR_BADDR_MASK only masks 39 bits, which is broken on current systems. Rather than just add a bit it seems like a good time to also set things at run-time instead of compile time to accomodate more hardware. This

[PATCH v4] arm64: fix VTTBR_BADDR_MASK

2014-08-11 Thread Joel Schopp
The current VTTBR_BADDR_MASK only masks 39 bits, which is broken on current systems. Rather than just add a bit it seems like a good time to also set things at run-time instead of compile time to accomodate more hardware. This patch sets TCR_EL2.PS, VTCR_EL2.T0SZ and vttbr_baddr_mask in runtime,