Re: [PATCH v2 5/6] KVM: arm64: Use get_page() instead of kvm_get_pfn()

2021-07-27 Thread Alexandru Elisei
Hi Marc, On 7/26/21 4:35 PM, Marc Zyngier wrote: > When mapping a THP, we are guaranteed that the page isn't reserved, > and we can safely avoid the kvm_is_reserved_pfn() call. > > Replace kvm_get_pfn() with get_page(pfn_to_page()). > > Signed-off-by: Marc Zyngier > --- > arch/arm64/kvm/mmu.c |

[PATCH v2 5/6] KVM: arm64: Use get_page() instead of kvm_get_pfn()

2021-07-26 Thread Marc Zyngier
When mapping a THP, we are guaranteed that the page isn't reserved, and we can safely avoid the kvm_is_reserved_pfn() call. Replace kvm_get_pfn() with get_page(pfn_to_page()). Signed-off-by: Marc Zyngier --- arch/arm64/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git