KVM: MMU: make rmap code aware of mapping levels
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 27 Jul 2009 14:30:42 +0000 (16:30 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:18 +0000 (08:33 +0300)
commit44ad9944f151390363fc6edaba466de8dfef050f
tree3870f0e2b5fcc265b688681329ecb1baa9f7c8b2
parentaed665f7bbacf09121370bc7e21b4cc7d55fc5ef
KVM: MMU: make rmap code aware of mapping levels

This patch removes the largepage parameter from the rmap_add function.
Together with rmap_remove this function now uses the role.level field to
find determine if the page is a huge page.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c