Re: [PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-08 Thread Marc Zyngier
On 2020-09-08 13:23, Alexandru Elisei wrote: Hi Marc, On 9/4/20 10:58 AM, Marc Zyngier wrote: Hi Alex, On Tue, 01 Sep 2020 14:33:57 +0100, Alexandru Elisei wrote: When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to use the same block size to map the faulting IPA in sta

Re: [PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-08 Thread Alexandru Elisei
Hi Marc, On 9/4/20 10:58 AM, Marc Zyngier wrote: > Hi Alex, > > On Tue, 01 Sep 2020 14:33:57 +0100, > Alexandru Elisei wrote: >> When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to >> use the same block size to map the faulting IPA in stage 2. If stage 2 >> cannot use the s

Re: [PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-04 Thread Marc Zyngier
Hi Alex, On Tue, 01 Sep 2020 14:33:57 +0100, Alexandru Elisei wrote: > > When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to > use the same block size to map the faulting IPA in stage 2. If stage 2 > cannot use the same size mapping because the block size doesn't fit in th

Re: [PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-02 Thread Gavin Shan
Hi Alex, On 9/2/20 7:01 PM, Alexandru Elisei wrote: On 9/2/20 2:23 AM, Gavin Shan wrote: On 9/1/20 11:33 PM, Alexandru Elisei wrote: When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to use the same block size to map the faulting IPA in stage 2. If stage 2 cannot use the

Re: [PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-02 Thread Alexandru Elisei
Hi Gavin, Many thanks for having a look at the patches! On 9/2/20 2:23 AM, Gavin Shan wrote: > Hi Alexandru, > > On 9/1/20 11:33 PM, Alexandru Elisei wrote: >> When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to >> use the same block size to map the faulting IPA in stage 2.

Re: [PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-01 Thread Gavin Shan
Hi Alexandru, On 9/1/20 11:33 PM, Alexandru Elisei wrote: When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to use the same block size to map the faulting IPA in stage 2. If stage 2 cannot use the same size mapping because the block size doesn't fit in the memslot or the me

[PATCH 2/2] KVM: arm64: Try PMD block mappings if PUD mappings are not supported

2020-09-01 Thread Alexandru Elisei
When userspace uses hugetlbfs for the VM memory, user_mem_abort() tries to use the same block size to map the faulting IPA in stage 2. If stage 2 cannot use the same size mapping because the block size doesn't fit in the memslot or the memslot is not properly aligned, user_mem_abort() will fall bac