Searched hist:"5 d218814328da91a27e982748443e7e375e11396" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/x86/kvm/ |
H A D | mmu.h | diff 5d218814328da91a27e982748443e7e375e11396 Wed Mar 13 02:36:43 CET 2013 Marcelo Tosatti <mtosatti@redhat.com> KVM: MMU: make kvm_mmu_available_pages robust against n_used_mmu_pages > n_max_mmu_pages
As noticed by Ulrich Obergfell <uobergfe@redhat.com>, the mmu counters are for beancounting purposes only - so n_used_mmu_pages and n_max_mmu_pages could be relaxed (example: before f0f5933a1626c8df7b), resulting in n_used_mmu_pages > n_max_mmu_pages.
Make code robust against n_used_mmu_pages > n_max_mmu_pages.
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
|