aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-05-02 06:23:10 -0400
committerAvi Kivity <avi@qumranet.com>2008-05-04 07:44:49 -0400
commit93df766322ba1db2801e4b826985a4932dd75866 (patch)
tree27e4dfcfa8e1ab54f42645d03b3c0a52aeddcfc9 /arch/x86/kvm
parentbc1a34f1bf354fabc03e3f465620c80e510d0e8f (diff)
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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index d9344be36442..36c5406b1813 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -376,7 +376,6 @@ static void account_shadowed(struct kvm *kvm, gfn_t gfn)
376 376
377 write_count = slot_largepage_idx(gfn, gfn_to_memslot(kvm, gfn)); 377 write_count = slot_largepage_idx(gfn, gfn_to_memslot(kvm, gfn));
378 *write_count += 1; 378 *write_count += 1;
379 WARN_ON(*write_count > KVM_PAGES_PER_HPAGE);
380} 379}
381 380
382static void unaccount_shadowed(struct kvm *kvm, gfn_t gfn) 381static void unaccount_shadowed(struct kvm *kvm, gfn_t gfn)