Revert "KVM: MMU: Move kvm_mmu_free_some_pages() into kvm_mmu_alloc_page()"
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 29 Mar 2013 05:05:26 +0000 (14:05 +0900)
committerGleb Natapov <gleb@redhat.com>
Sun, 7 Apr 2013 10:13:36 +0000 (13:13 +0300)
commit450e0b411f56db9839c9725d4d49e70e24f87ba3
tree5904992d4301411e8f3852167cce39b77b381b29
parentafd80d85aefac27e6e2f9dc10f60515357c504d2
Revert "KVM: MMU: Move kvm_mmu_free_some_pages() into kvm_mmu_alloc_page()"

With the following commit, shadow pages can be zapped at random during
a shadow page talbe walk:
  KVM: MMU: Move kvm_mmu_free_some_pages() into kvm_mmu_alloc_page()
  7ddca7e43c8f28f9419da81a0e7730b66aa60fe9

This patch reverts it and fixes __direct_map() and FNAME(fetch)().

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h