OSDN Git Service

KVM/MMU: Combine flushing remote tlb in mmu_set_spte()
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Tue, 24 Jul 2018 08:17:07 +0000 (08:17 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:18 +0000 (17:59 +0200)
commitc2a4eadf7747a1359a80ede64e4ae0e0ba64ca08
tree51601589f99be2c26d1d2e4e5b0cf64831456fcc
parent5e079c7ece1060491ef4a45414823162cce91b3d
KVM/MMU: Combine flushing remote tlb in mmu_set_spte()

mmu_set_spte() flushes remote tlbs for drop_parent_pte/drop_spte()
and set_spte() separately. This may introduce redundant flush. This
patch is to combine these flushes and check flush request after
calling set_spte().

Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Reviewed-by: Junaid Shahid <junaids@google.com>
Reviewed-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c