Re: [PATCH v3 23/32] KVM: arm64: Make memcache anonymous in pgtable allocator

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:53PM +, Quentin Perret wrote: > The current stage2 page-table allocator uses a memcache to get > pre-allocated pages when it needs any. To allow re-using this code at > EL2 which uses a concept of memory pools, make the memcache argument of >

[PATCH v3 23/32] KVM: arm64: Make memcache anonymous in pgtable allocator

2021-03-02 Thread Quentin Perret
The current stage2 page-table allocator uses a memcache to get pre-allocated pages when it needs any. To allow re-using this code at EL2 which uses a concept of memory pools, make the memcache argument of kvm_pgtable_stage2_map() anonymous, and let the mm_ops zalloc_page() callbacks use it the way