KVM: x86: return 0 in case kvm_mmu_memory_cache has min number of objects
authorWei Yang <richard.weiyang@gmail.com>
Tue, 4 Sep 2018 15:57:32 +0000 (23:57 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:41 +0000 (00:29 +0200)
commitdaefb7949e661e2ee5e40dc5ca51e5bf42f6c823
tree842fc16de750cb7fe0105bf05cfc8f64484cd74c
parent55c1dcd80bdf0e9cf30a963fffd3131145f26938
KVM: x86: return 0 in case kvm_mmu_memory_cache has min number of objects

The code tries to pre-allocate *min* number of objects, so it is ok to
return 0 when the kvm_mmu_memory_cache meets the requirement.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c