Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200321
b: refs/heads/master
c: 69325a1
h: refs/heads/master
i:
  200319: 754f72b
v: v3
  • Loading branch information
Avi Kivity committed Jun 9, 2010
1 parent ca870d6 commit 58e5ded
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3be2264be3c00865116f997dc53ebcc90fe7fc4b
refs/heads/master: 69325a122580d3a7b26589e8efdd6663001c3297
3 changes: 3 additions & 0 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,9 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep,

spte |= PT_WRITABLE_MASK;

if (!tdp_enabled && !(pte_access & ACC_WRITE_MASK))
spte &= ~PT_USER_MASK;

/*
* Optimization: for pte sync, if spte was writable the hash
* lookup is unnecessary (and expensive). Write protection
Expand Down

0 comments on commit 58e5ded

Please sign in to comment.