kvm: x86: Make sync_page() flush remote TLBs once only
authorJunaid Shahid <junaids@google.com>
Wed, 27 Jun 2018 21:59:04 +0000 (14:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:58:49 +0000 (17:58 +0200)
commit5ce4786f75d16504223c7a65a42b200c2550fa29
treeeee73cd1d96eaf252c36eae05b55991c4511885a
parent42522d08cdba6d8be4247e4f0770f39f4708b71f
kvm: x86: Make sync_page() flush remote TLBs once only

sync_page() calls set_spte() from a loop across a page table. It would
work better if set_spte() left the TLB flushing to its callers, so that
sync_page() can aggregate into a single call.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h