]> 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)
commitf6c463ab2d114a49c4c6581ade9f218c675d3a05
tree842fc16de750cb7fe0105bf05cfc8f64484cd74c
parent190c476021f008c84a067c8751a1dbd0fbd707f7
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