]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: MMU: Add for_each_shadow_entry(), a simpler alternative to walk_shadow()
authorAvi Kivity <avi@redhat.com>
Thu, 25 Dec 2008 12:39:47 +0000 (14:39 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:52 +0000 (11:02 +0200)
commit2d11123a77e54d5cea262c958e8498f4a08bce3d
tree4068b8f6c35f424c32ad0c160d8719d8463bfe28
parent971cc3dcbc0e020b82f568e61a47b72be03307dd
KVM: MMU: Add for_each_shadow_entry(), a simpler alternative to walk_shadow()

Using a for_each loop style removes the need to write callback and nasty
casts.

Implement the walk_shadow() using the for_each_shadow_entry().

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