Re: [PATCH 10/21] KVM: x86/mmu: Make __GFP_ZERO a property of the memory cache

2020-06-22 Thread Sean Christopherson
On Wed, Jun 10, 2020 at 11:57:32AM -0700, Ben Gardon wrote: > > --- > > arch/x86/include/asm/kvm_host.h | 1 + > > arch/x86/kvm/mmu/mmu.c | 7 ++- > > 2 files changed, 7 insertions(+), 1 deletion(-) > > > > diff --git a/arch/x86/include/asm/kvm_host.h > >

Re: [PATCH 10/21] KVM: x86/mmu: Make __GFP_ZERO a property of the memory cache

2020-06-10 Thread Ben Gardon
On Fri, Jun 5, 2020 at 2:39 PM Sean Christopherson wrote: > > Add a gfp_zero flag to 'struct kvm_mmu_memory_cache' and use it to > control __GFP_ZERO instead of hardcoding a call to kmem_cache_zalloc(). > A future patch needs such a flag for the __get_free_page() path, as > gfn arrays do not

[PATCH 10/21] KVM: x86/mmu: Make __GFP_ZERO a property of the memory cache

2020-06-05 Thread Sean Christopherson
Add a gfp_zero flag to 'struct kvm_mmu_memory_cache' and use it to control __GFP_ZERO instead of hardcoding a call to kmem_cache_zalloc(). A future patch needs such a flag for the __get_free_page() path, as gfn arrays do not need/want the allocator to zero the memory. Convert the kmem_cache paths