KVM: MMU: introduce is_last_spte helper
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 10 Jun 2009 15:27:03 +0000 (12:27 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:53 +0000 (08:32 +0300)
commit776e6633363b5616be6fa4493a8b70ef8e2ea04b
tree07c0c2547f681330b600f82e860d3e74192532d5
parent3f5d18a96577fd78277e08c467041573b9a65eaf
KVM: MMU: introduce is_last_spte helper

Hiding some of the last largepage / level interaction (which is useful
for gbpages and for zero based levels).

Also merge the PT_PAGE_TABLE_LEVEL clearing loop in unlink_children.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c