]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: MMU: Drop walk_shadow()
authorAvi Kivity <avi@redhat.com>
Thu, 25 Dec 2008 13:20:07 +0000 (15:20 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:53 +0000 (11:02 +0200)
No longer used.

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

index a25e1adb5cffbb9a37031c087904d1a93fe5fc11..15850809b55b2bed64aeaa5bd3143571c2a45ecf 100644 (file)
@@ -145,11 +145,6 @@ struct kvm_rmap_desc {
        struct kvm_rmap_desc *more;
 };
 
-struct kvm_shadow_walk {
-       int (*entry)(struct kvm_shadow_walk *walk, struct kvm_vcpu *vcpu,
-                    u64 addr, u64 *spte, int level);
-};
-
 struct kvm_shadow_walk_iterator {
        u64 addr;
        hpa_t shadow_addr;
@@ -1299,21 +1294,6 @@ static void shadow_walk_next(struct kvm_shadow_walk_iterator *iterator)
        --iterator->level;
 }
 
-static int walk_shadow(struct kvm_shadow_walk *walker,
-                      struct kvm_vcpu *vcpu, u64 addr)
-{
-       struct kvm_shadow_walk_iterator iterator;
-       int r;
-
-       for_each_shadow_entry(vcpu, addr, iterator) {
-               r = walker->entry(walker, vcpu, addr,
-                                 iterator.sptep, iterator.level);
-               if (r)
-                       return r;
-       }
-       return 0;
-}
-
 static void kvm_mmu_page_unlink_children(struct kvm *kvm,
                                         struct kvm_mmu_page *sp)
 {