KVM: MMU: introduce some macros to cleanup hlist traverseing
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 4 Jun 2010 13:53:07 +0000 (21:53 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:39:27 +0000 (10:39 +0300)
commit7ae680eb2d5f0cb10ca0e6d1ff5ecb145befe8e4
treeace3e87b6bccc4e61b32b2b38bb300fb34f9bd2e
parent03116aa57e75b1bbe8b5e04f3cd21cdb6588c4ba
KVM: MMU: introduce some macros to cleanup hlist traverseing

Introduce for_each_gfn_sp() and for_each_gfn_indirect_valid_sp() to
cleanup hlist traverseing

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