Re: [PATCH 2/3] KVM: arm64: Don't map PUD huge page if it's not available

2020-10-25 Thread Gavin Shan
Hi Marc, On 10/25/20 9:05 PM, Marc Zyngier wrote: On Sun, 25 Oct 2020 01:27:38 +0100, Gavin Shan wrote: PUD huge page isn't available when CONFIG_ARM64_4K_PAGES is disabled. In this case, we needn't try to map the memory through PUD huge pages to save some CPU cycles in the hot path. This

Re: [PATCH 2/3] KVM: arm64: Don't map PUD huge page if it's not available

2020-10-25 Thread Marc Zyngier
On Sun, 25 Oct 2020 01:27:38 +0100, Gavin Shan wrote: > > PUD huge page isn't available when CONFIG_ARM64_4K_PAGES is disabled. > In this case, we needn't try to map the memory through PUD huge pages > to save some CPU cycles in the hot path. > > This also corrects the code style issue, which

[PATCH 2/3] KVM: arm64: Don't map PUD huge page if it's not available

2020-10-24 Thread Gavin Shan
PUD huge page isn't available when CONFIG_ARM64_4K_PAGES is disabled. In this case, we needn't try to map the memory through PUD huge pages to save some CPU cycles in the hot path. This also corrects the code style issue, which was introduced by commit <523b3999e5f6> ("KVM: arm64: Try PMD block