Re: [PATCH -kvm] kvm: fix regression from rework KVM mmu_shrink() code

2010-08-24 Thread Marcelo Tosatti
On Tue, Aug 24, 2010 at 10:31:07AM +0800, Xiaotian Feng wrote: > Latest kvm mmu_shrink code rework makes kernel changes > kvm->arch.n_used_mmu_pages/ > kvm->arch.n_max_mmu_pages at kvm_mmu_free_page/kvm_mmu_alloc_page, which is > called > by kvm_mmu_commit_zap_page. So the kvm->arch.n_used_mmu_pa

[PATCH -kvm] kvm: fix regression from rework KVM mmu_shrink() code

2010-08-23 Thread Xiaotian Feng
Latest kvm mmu_shrink code rework makes kernel changes kvm->arch.n_used_mmu_pages/ kvm->arch.n_max_mmu_pages at kvm_mmu_free_page/kvm_mmu_alloc_page, which is called by kvm_mmu_commit_zap_page. So the kvm->arch.n_used_mmu_pages or kvm_mmu_available_pages(vcpu->kvm) is unchanged after kvm_mmu_pre