]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Coalesce TLB flushes across address spaces for gfn range zap
authorSean Christopherson <seanjc@google.com>
Fri, 26 Mar 2021 02:19:43 +0000 (19:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 17 Apr 2021 12:30:54 +0000 (08:30 -0400)
commit01542e8bb4421ee24c2bbb3aa62c8f6214ae65e4
tree400ab428a86a08a34826ec1737599a59d2586379
parentb12c296e883d38d1db62dc262860fd9a4fa294a4
KVM: x86/mmu: Coalesce TLB flushes across address spaces for gfn range zap

Gather pending TLB flushes across both address spaces when zapping a
given gfn range.  This requires feeding "flush" back into subsequent
calls, but on the plus side sets the stage for further batching
between the legacy MMU and TDP MMU.  It also allows refactoring the
address space iteration to cover the legacy and TDP MMUs without
introducing truly ugly code.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210326021957.1424875-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c