KVM: Recalculate mmu pages needed for every memory region change
authorZhang Xiantao <xiantao.zhang@intel.com>
Tue, 20 Nov 2007 05:11:38 +0000 (13:11 +0800)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:09 +0000 (17:53 +0200)
commit3ad82a7e874c5d6c4045090cc01d7794dd9eb21c
tree94aabdff667daa7de80b61dd7d0233af21a54fa4
parent6226686954c4cce3d63ffe1777e60360fcbf0b83
KVM: Recalculate mmu pages needed for every memory region change

Instead of incrementally changing the mmu cache size for every memory slot
operation, recalculate it from scratch.  This is simpler and safer.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/x86.h