Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202377
b: refs/heads/master
c: 36a2e67
h: refs/heads/master
i:
  202375: 32c5797
v: v3
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed Aug 1, 2010
1 parent 9c95a00 commit 7223f46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: f5f48ee15c2ee3e44cf429e34b16c6fa9b900246
refs/heads/master: 36a2e6774bfb5f32a0f23bb155f1f960321f291b
5 changes: 4 additions & 1 deletion trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1810,11 +1810,14 @@ static int mmu_need_write_protect(struct kvm_vcpu *vcpu, gfn_t gfn,
bool need_unsync = false;

for_each_gfn_indirect_valid_sp(vcpu->kvm, s, gfn, node) {
if (!can_unsync)
return 1;

if (s->role.level != PT_PAGE_TABLE_LEVEL)
return 1;

if (!need_unsync && !s->unsync) {
if (!can_unsync || !oos_shadow)
if (!oos_shadow)
return 1;
need_unsync = true;
}
Expand Down

0 comments on commit 7223f46

Please sign in to comment.