Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133760
b: refs/heads/master
c: 4539b35
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Avi Kivity committed Mar 24, 2009
1 parent d58655d commit 6508caa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36463146ffb7eee4582ed785a8c8be213b8ed110
refs/heads/master: 4539b35881ae9664b0e2953438dd83f5ee02c0b4
4 changes: 4 additions & 0 deletions trunk/arch/x86/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva)
gpa_t pte_gpa = -1;
int level;
u64 *sptep;
int need_flush = 0;

spin_lock(&vcpu->kvm->mmu_lock);

Expand All @@ -465,6 +466,7 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva)
rmap_remove(vcpu->kvm, sptep);
if (is_large_pte(*sptep))
--vcpu->kvm->stat.lpages;
need_flush = 1;
}
set_shadow_pte(sptep, shadow_trap_nonpresent_pte);
break;
Expand All @@ -474,6 +476,8 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva)
break;
}

if (need_flush)
kvm_flush_remote_tlbs(vcpu->kvm);
spin_unlock(&vcpu->kvm->mmu_lock);

if (pte_gpa == -1)
Expand Down

0 comments on commit 6508caa

Please sign in to comment.