]> git.baikalelectronics.ru Git - kernel.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)
commit842288e5211678339584dfe867c73baffab0c67e
tree4068b8f6c35f424c32ad0c160d8719d8463bfe28
parent9529118a0bc67687e5e00ef710ae66fc6c30b158
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