KVM: MMU: move TLB flush out of __kvm_sync_page
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Feb 2016 09:03:27 +0000 (10:03 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2016 11:33:17 +0000 (12:33 +0100)
commit35a70510ee13b0ab130968ed399eeeb5106bc12e
treed6cd7d2beca8e3260f140312281956e73a0c907f
parentb8c67b7a086c9b2f96a2cf95624a9000a6be2922
KVM: MMU: move TLB flush out of __kvm_sync_page

By doing this, kvm_sync_pages can use __kvm_sync_page instead of
reinventing it.  Because of kvm_mmu_flush_or_zap, the code does not
end up being more complex than before, and more cleanups to kvm_sync_pages
will come in the next patches.

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