Re: [PATCH 1/3] KVM: arm64: Check if 52-bits PA is enabled

2020-10-26 Thread Gavin Shan
On 10/26/20 7:53 PM, Marc Zyngier wrote: On 2020-10-25 22:23, Gavin Shan wrote: Hi Marc, On 10/25/20 8:52 PM, Marc Zyngier wrote: On Sun, 25 Oct 2020 01:27:37 +0100, Gavin Shan wrote: The 52-bits physical address is disabled until CONFIG_ARM64_PA_BITS_52 is chosen. This uses option for

Re: [PATCH 1/3] KVM: arm64: Check if 52-bits PA is enabled

2020-10-26 Thread Marc Zyngier
On 2020-10-25 22:23, Gavin Shan wrote: Hi Marc, On 10/25/20 8:52 PM, Marc Zyngier wrote: On Sun, 25 Oct 2020 01:27:37 +0100, Gavin Shan wrote: The 52-bits physical address is disabled until CONFIG_ARM64_PA_BITS_52 is chosen. This uses option for that check, to avoid the unconditional

Re: [PATCH 1/3] KVM: arm64: Check if 52-bits PA is enabled

2020-10-26 Thread Will Deacon
On Mon, Oct 26, 2020 at 09:23:31AM +1100, Gavin Shan wrote: > On 10/25/20 8:52 PM, Marc Zyngier wrote: > > On Sun, 25 Oct 2020 01:27:37 +0100, > > Gavin Shan wrote: > > > > > > The 52-bits physical address is disabled until CONFIG_ARM64_PA_BITS_52 > > > is chosen. This uses option for that

Re: [PATCH 1/3] KVM: arm64: Check if 52-bits PA is enabled

2020-10-25 Thread Gavin Shan
Hi Marc, On 10/25/20 8:52 PM, Marc Zyngier wrote: On Sun, 25 Oct 2020 01:27:37 +0100, Gavin Shan wrote: The 52-bits physical address is disabled until CONFIG_ARM64_PA_BITS_52 is chosen. This uses option for that check, to avoid the unconditional check on PAGE_SHIFT in the hot path and thus

Re: [PATCH 1/3] KVM: arm64: Check if 52-bits PA is enabled

2020-10-25 Thread Marc Zyngier
On Sun, 25 Oct 2020 01:27:37 +0100, Gavin Shan wrote: > > The 52-bits physical address is disabled until CONFIG_ARM64_PA_BITS_52 > is chosen. This uses option for that check, to avoid the unconditional > check on PAGE_SHIFT in the hot path and thus save some CPU cycles. PAGE_SHIFT is known at

[PATCH 1/3] KVM: arm64: Check if 52-bits PA is enabled

2020-10-24 Thread Gavin Shan
The 52-bits physical address is disabled until CONFIG_ARM64_PA_BITS_52 is chosen. This uses option for that check, to avoid the unconditional check on PAGE_SHIFT in the hot path and thus save some CPU cycles. Signed-off-by: Gavin Shan --- arch/arm64/kvm/hyp/pgtable.c | 10 ++ 1 file