1
0
Fork 0

KVM: MMU: Allow more than PAGES_PER_HPAGE write protections per large 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>
wifi-calibration
Avi Kivity 2008-05-02 13:23:10 +03:00
parent bc1a34f1bf
commit 93df766322
1 changed files with 0 additions and 1 deletions

View File

@ -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)