Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98420
b: refs/heads/master
c: 6bf6a95
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed Jun 24, 2008
1 parent ed03bb3 commit 7f3777f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3094538739415a9225afd2a6c78cb0fe1c1f641b
refs/heads/master: 6bf6a9532fd03ad719f0c86654f16ef777b78fc6
6 changes: 0 additions & 6 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,10 +1083,6 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *shadow_pte,
struct kvm_mmu_page *shadow;

spte |= PT_WRITABLE_MASK;
if (user_fault) {
mmu_unshadow(vcpu->kvm, gfn);
goto unshadowed;
}

shadow = kvm_mmu_lookup_page(vcpu->kvm, gfn);
if (shadow ||
Expand All @@ -1103,8 +1099,6 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *shadow_pte,
}
}

unshadowed:

if (pte_access & ACC_WRITE_MASK)
mark_page_dirty(vcpu->kvm, gfn);

Expand Down

0 comments on commit 7f3777f

Please sign in to comment.