]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit009f95365d6c55d6c84e6c57f1beb2ed71a42849
tree842fc16de750cb7fe0105bf05cfc8f64484cd74c
parentc3c20b9697ee8195b8f42523da7232a66d072bc9
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