Skip to content

Commit

Permalink
KVM: MMU: Allow more than PAGES_PER_HPAGE write protections per large…
Browse files Browse the repository at this point in the history
… page

nonpae guests can call rmap_write_protect twice per page (for page tables)
or four times per page (for page directories), triggering a bogus warning.

Remove the warning.

Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Avi Kivity committed May 4, 2008
1 parent bc1a34f commit 93df766
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ static void account_shadowed(struct kvm *kvm, gfn_t gfn)

write_count = slot_largepage_idx(gfn, gfn_to_memslot(kvm, gfn));
*write_count += 1;
WARN_ON(*write_count > KVM_PAGES_PER_HPAGE);
}

static void unaccount_shadowed(struct kvm *kvm, gfn_t gfn)
Expand Down

0 comments on commit 93df766

Please sign in to comment.