KVM: MMU: fix bogus alloc_mmu_pages assignment
commitc05d2ba2c54deb24cd2c8cb8345bd4d7624cbdba
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 18 Sep 2009 20:29:27 +0000 (18 17:29 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:27 +0000 (5 09:32 -0700)
treedf450a69558fe92e5b1d6c6eed2444dfb93fcb41
parent7b05aacb73a87411552cf83ab0a0bf519d47ef2f
KVM: MMU: fix bogus alloc_mmu_pages assignment

(cherry picked from commit b90c062c65cc8839edfac39778a37a55ca9bda36)

Remove the bogus n_free_mmu_pages assignment from alloc_mmu_pages.

It breaks accounting of mmu pages, since n_free_mmu_pages is modified
but the real number of pages remains the same.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c