Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93df7663 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent bc1a34f1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)