提交 e8c4a4e8 编写于 作者: A Avi Kivity

KVM: MMU: Drop walk_shadow()

No longer used.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 a461930b
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册