diff options
author | Avi Kivity <avi@qumranet.com> | 2008-05-02 12:23:10 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-04 13:44:49 +0200 |
commit | 93df766322ba1db2801e4b826985a4932dd75866 (patch) | |
tree | 27e4dfcfa8e1ab54f42645d03b3c0a52aeddcfc9 /arch/x86 | |
parent | KVM: avoid fx_init() schedule in atomic (diff) | |
download | linux-93df766322ba1db2801e4b826985a4932dd75866.tar.xz linux-93df766322ba1db2801e4b826985a4932dd75866.zip |
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')
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 |
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) 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) |