KVM: MMU: coalesce more page zapping in mmu_sync_children
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Feb 2016 09:47:38 +0000 (10:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2016 11:33:33 +0000 (12:33 +0100)
commit50c9e6f3a69dfa458ecb671bcbd11e2eea6db0c1
tree7f5822d1a0a1399cabb440c130307907e7c19eaa
parent2a74003ae818cfaf129ed4df89499a1c2b796129
KVM: MMU: coalesce more page zapping in mmu_sync_children

mmu_sync_children can only process up to 16 pages at a time.  Check
if we need to reschedule, and do not bother zapping the pages until
that happens.

Reviewed-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c