Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202343
b: refs/heads/master
c: ebdea63
h: refs/heads/master
i:
  202341: 1b2c9a1
  202339: 841c31a
  202335: b3703c6
v: v3
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed Aug 1, 2010
1 parent a6ed32a commit a00dda6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: be71e061d15c0aad4f8c2606f76c57b8a19792fd
refs/heads/master: ebdea638df04ae6293a9a5414d98ad843c69e82f
8 changes: 4 additions & 4 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,9 +1160,11 @@ static int __mmu_unsync_walk(struct kvm_mmu_page *sp,
return -ENOSPC;

ret = __mmu_unsync_walk(child, pvec);
if (!ret)
if (!ret) {
__clear_bit(i, sp->unsync_child_bitmap);
else if (ret > 0)
sp->unsync_children--;
WARN_ON((int)sp->unsync_children < 0);
} else if (ret > 0)
nr_unsync_leaf += ret;
else
return ret;
Expand All @@ -1176,8 +1178,6 @@ static int __mmu_unsync_walk(struct kvm_mmu_page *sp,
}
}

if (find_first_bit(sp->unsync_child_bitmap, 512) == 512)
sp->unsync_children = 0;

return nr_unsync_leaf;
}
Expand Down

0 comments on commit a00dda6

Please sign in to comment.