diff options
author | Avi Kivity <avi@qumranet.com> | 2008-05-02 13:23:10 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-02 13:23:10 +0300 |
commit | 9cebc1e22d4413d0b3922b137e5603947bacb73f (patch) | |
tree | 7a38d46d9f07c075347f133156e4a4354c42c0fe | |
parent | 33b20d12e4b2f247e255f3428aa28dd932e56973 (diff) |
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>
-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 813e70f17a69..3d769c37986c 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) |