diff options
author | Avi Kivity <avi@redhat.com> | 2008-12-25 08:20:07 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:02:53 -0400 |
commit | e8c4a4e8a7cc047dfb3c26b2cbc8599ad3460364 (patch) | |
tree | 786ddd9a9645740e4e2ae68db7c847995a37b86f /arch/x86 | |
parent | a461930bc3cece021f8f89a80dcc1d0691a92b52 (diff) |
KVM: MMU: Drop walk_shadow()
No longer used.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/mmu.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index a25e1adb5cff..15850809b55b 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -145,11 +145,6 @@ struct kvm_rmap_desc { | |||
145 | struct kvm_rmap_desc *more; | 145 | struct kvm_rmap_desc *more; |
146 | }; | 146 | }; |
147 | 147 | ||
148 | struct kvm_shadow_walk { | ||
149 | int (*entry)(struct kvm_shadow_walk *walk, struct kvm_vcpu *vcpu, | ||
150 | u64 addr, u64 *spte, int level); | ||
151 | }; | ||
152 | |||
153 | struct kvm_shadow_walk_iterator { | 148 | struct kvm_shadow_walk_iterator { |
154 | u64 addr; | 149 | u64 addr; |
155 | hpa_t shadow_addr; | 150 | hpa_t shadow_addr; |
@@ -1299,21 +1294,6 @@ static void shadow_walk_next(struct kvm_shadow_walk_iterator *iterator) | |||
1299 | --iterator->level; | 1294 | --iterator->level; |
1300 | } | 1295 | } |
1301 | 1296 | ||
1302 | static int walk_shadow(struct kvm_shadow_walk *walker, | ||
1303 | struct kvm_vcpu *vcpu, u64 addr) | ||
1304 | { | ||
1305 | struct kvm_shadow_walk_iterator iterator; | ||
1306 | int r; | ||
1307 | |||
1308 | for_each_shadow_entry(vcpu, addr, iterator) { | ||
1309 | r = walker->entry(walker, vcpu, addr, | ||
1310 | iterator.sptep, iterator.level); | ||
1311 | if (r) | ||
1312 | return r; | ||
1313 | } | ||
1314 | return 0; | ||
1315 | } | ||
1316 | |||
1317 | static void kvm_mmu_page_unlink_children(struct kvm *kvm, | 1297 | static void kvm_mmu_page_unlink_children(struct kvm *kvm, |
1318 | struct kvm_mmu_page *sp) | 1298 | struct kvm_mmu_page *sp) |
1319 | { | 1299 | { |