KVM: MMU: use kvm_sync_page in kvm_sync_pages
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Feb 2016 09:19:30 +0000 (10:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2016 11:33:20 +0000 (12:33 +0100)
commitdf748f864a342375aaa52a7e043fae7142376d01
tree2b0e0b3e8c9988e1f4a5a12eee7ece4fc96f24c8
parent35a70510ee13b0ab130968ed399eeeb5106bc12e
KVM: MMU: use kvm_sync_page in kvm_sync_pages

If the last argument is true, kvm_unlink_unsync_page is called anyway in
__kvm_sync_page (either by kvm_mmu_prepare_zap_page or by __kvm_sync_page
itself).  Therefore, kvm_sync_pages can just call kvm_sync_page, instead
of going through kvm_unlink_unsync_page+__kvm_sync_page.

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