Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307867
b: refs/heads/master
c: f71fa31
h: refs/heads/master
i:
  307865: 0a8ffd6
  307863: 3fe1a9a
v: v3
  • Loading branch information
Davidlohr Bueso authored and Marcelo Tosatti committed Apr 19, 2012
1 parent 82cd36c commit f30e6cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: a0c9a822bf37e6282eb6006b407ec5aec22e08fb
refs/heads/master: f71fa31f9f7ac33cba12b8897983f950ad2c7a5b
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3618,7 +3618,7 @@ static bool detect_write_flooding(struct kvm_mmu_page *sp)
* Skip write-flooding detected for the sp whose level is 1, because
* it can become unsync, then the guest page is not write-protected.
*/
if (sp->role.level == 1)
if (sp->role.level == PT_PAGE_TABLE_LEVEL)
return false;

return ++sp->write_flooding_count >= 3;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ static gpa_t FNAME(get_level1_sp_gpa)(struct kvm_mmu_page *sp)
{
int offset = 0;

WARN_ON(sp->role.level != 1);
WARN_ON(sp->role.level != PT_PAGE_TABLE_LEVEL);

if (PTTYPE == 32)
offset = sp->role.quadrant << PT64_LEVEL_BITS;
Expand Down

0 comments on commit f30e6cc

Please sign in to comment.