From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] KVM: Fix mmu shrinker error Date: Tue, 27 Apr 2010 11:40:39 -0300 Message-ID: <20100427144039.GA23249@amt.cnet> References: <4BD64E75.5050007@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm@vger.kernel.org To: Gui Jianfeng Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1695 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545Ab0D0Opp (ORCPT ); Tue, 27 Apr 2010 10:45:45 -0400 Content-Disposition: inline In-Reply-To: <4BD64E75.5050007@cn.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Apr 27, 2010 at 10:39:49AM +0800, Gui Jianfeng wrote: > kvm_mmu_remove_one_alloc_mmu_page() assumes kvm_mmu_zap_page() only reclaims > only one sp, but that's not the case. This will cause mmu shrinker returns > a wrong number. This patch fix the counting error. > > Signed-off-by: Gui Jianfeng > --- > arch/x86/kvm/mmu.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) Applied, thanks.