aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2010-11-19 04:04:03 -0500
committerAvi Kivity <avi@redhat.com>2011-01-12 04:29:48 -0500
commita4a8e6f76ecf963fa7e4d74b3635655a2033a27b (patch)
tree19be96f9c253b47e22600ae0034c2b228d77f6e8 /arch/x86/kvm/mmu.c
parent9bdbba13b8868815198e4fdbd484769ef76392d9 (diff)
KVM: MMU: remove 'clear_unsync' parameter
Remove it since we can judge it by using sp->unsync Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 59104927c582..3db0cd4b13d7 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1156,7 +1156,7 @@ static void nonpaging_prefetch_page(struct kvm_vcpu *vcpu,
1156} 1156}
1157 1157
1158static int nonpaging_sync_page(struct kvm_vcpu *vcpu, 1158static int nonpaging_sync_page(struct kvm_vcpu *vcpu,
1159 struct kvm_mmu_page *sp, bool clear_unsync) 1159 struct kvm_mmu_page *sp)
1160{ 1160{
1161 return 1; 1161 return 1;
1162} 1162}
@@ -1286,7 +1286,7 @@ static int __kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
1286 if (clear_unsync) 1286 if (clear_unsync)
1287 kvm_unlink_unsync_page(vcpu->kvm, sp); 1287 kvm_unlink_unsync_page(vcpu->kvm, sp);
1288 1288
1289 if (vcpu->arch.mmu.sync_page(vcpu, sp, clear_unsync)) { 1289 if (vcpu->arch.mmu.sync_page(vcpu, sp)) {
1290 kvm_mmu_prepare_zap_page(vcpu->kvm, sp, invalid_list); 1290 kvm_mmu_prepare_zap_page(vcpu->kvm, sp, invalid_list);
1291 return 1; 1291 return 1;
1292 } 1292 }
@@ -1327,12 +1327,12 @@ static void kvm_sync_pages(struct kvm_vcpu *vcpu, gfn_t gfn)
1327 continue; 1327 continue;
1328 1328
1329 WARN_ON(s->role.level != PT_PAGE_TABLE_LEVEL); 1329 WARN_ON(s->role.level != PT_PAGE_TABLE_LEVEL);
1330 kvm_unlink_unsync_page(vcpu->kvm, s);
1330 if ((s->role.cr4_pae != !!is_pae(vcpu)) || 1331 if ((s->role.cr4_pae != !!is_pae(vcpu)) ||
1331 (vcpu->arch.mmu.sync_page(vcpu, s, true))) { 1332 (vcpu->arch.mmu.sync_page(vcpu, s))) {
1332 kvm_mmu_prepare_zap_page(vcpu->kvm, s, &invalid_list); 1333 kvm_mmu_prepare_zap_page(vcpu->kvm, s, &invalid_list);
1333 continue; 1334 continue;
1334 } 1335 }
1335 kvm_unlink_unsync_page(vcpu->kvm, s);
1336 flush = true; 1336 flush = true;
1337 } 1337 }
1338 1338