KVM: MMU: introduce kvm_mmu_flush_or_zap
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Feb 2016 10:21:55 +0000 (11:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2016 11:33:00 +0000 (12:33 +0100)
commitb8c67b7a086c9b2f96a2cf95624a9000a6be2922
tree639c8bab3330428e08023f13ffd5bb9cfeb704ac
parent0e4d44151af7c8fca3d15c27d9b97d4ac41c102b
KVM: MMU: introduce kvm_mmu_flush_or_zap

This is a generalization of mmu_pte_write_flush_tlb, that also
takes care of calling kvm_mmu_commit_zap_page.  The next
patches will introduce more uses.

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