diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-04-06 06:29:05 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:17:29 -0400 |
commit | f84cbb0561d7cefb5fc050ee99d8c82ec9ce883d (patch) | |
tree | 8ae57456b2efa71b5b326cee4f34c20dec842b61 | |
parent | 805d32dea4dfb8319aaf7e73a681ad410a5e331a (diff) |
KVM: MMU: remove unused field
kvm_mmu_page.oos_link is not used, so remove it
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 | ||||
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 26c629a062db..0c49c888be6b 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -187,8 +187,6 @@ struct kvm_mmu_page { | |||
187 | struct list_head link; | 187 | struct list_head link; |
188 | struct hlist_node hash_link; | 188 | struct hlist_node hash_link; |
189 | 189 | ||
190 | struct list_head oos_link; | ||
191 | |||
192 | /* | 190 | /* |
193 | * The following two entries are used to key the shadow page in the | 191 | * The following two entries are used to key the shadow page in the |
194 | * hash table. | 192 | * hash table. |
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 6ed7d633aefe..ec8900b6692a 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -923,7 +923,6 @@ static struct kvm_mmu_page *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu, | |||
923 | sp->gfns = mmu_memory_cache_alloc(&vcpu->arch.mmu_page_cache, PAGE_SIZE); | 923 | sp->gfns = mmu_memory_cache_alloc(&vcpu->arch.mmu_page_cache, PAGE_SIZE); |
924 | set_page_private(virt_to_page(sp->spt), (unsigned long)sp); | 924 | set_page_private(virt_to_page(sp->spt), (unsigned long)sp); |
925 | list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages); | 925 | list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages); |
926 | INIT_LIST_HEAD(&sp->oos_link); | ||
927 | bitmap_zero(sp->slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS); | 926 | bitmap_zero(sp->slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS); |
928 | sp->multimapped = 0; | 927 | sp->multimapped = 0; |
929 | sp->parent_pte = parent_pte; | 928 | sp->parent_pte = parent_pte; |