Re: [PATCH 2/5] KVM: arm64: Avoid mapping size adjustment on permission fault

2021-07-23 Thread Marc Zyngier
On Fri, 23 Jul 2021 16:55:39 +0100, Alexandru Elisei wrote: > > Hi Marc, > > On 7/17/21 10:55 AM, Marc Zyngier wrote: > > Since we only support PMD-sized mappings for THP, getting > > a permission fault on a level that results in a mapping > > being larger than PAGE_SIZE is a sure indication tha

Re: [PATCH 2/5] KVM: arm64: Avoid mapping size adjustment on permission fault

2021-07-23 Thread Alexandru Elisei
Hi Marc, On 7/17/21 10:55 AM, Marc Zyngier wrote: > Since we only support PMD-sized mappings for THP, getting > a permission fault on a level that results in a mapping > being larger than PAGE_SIZE is a sure indication that we have > already upgraded our mapping to a PMD. > > In this case, there i

[PATCH 2/5] KVM: arm64: Avoid mapping size adjustment on permission fault

2021-07-17 Thread Marc Zyngier
Since we only support PMD-sized mappings for THP, getting a permission fault on a level that results in a mapping being larger than PAGE_SIZE is a sure indication that we have already upgraded our mapping to a PMD. In this case, there is no need to try and parse userspace page tables, as the fault