KVM: x86/mmu: Allow yielding during MMU notifier unmap/zap, if possible
authorSean Christopherson <seanjc@google.com>
Fri, 2 Apr 2021 00:56:58 +0000 (17:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:05:23 +0000 (09:05 -0400)
commite1eed5847b09fe41d4db4b86f9d840aba869c905
tree7a6e40c4b655d5d38b571e1b103656ffeb4d3a90
parent8931a454aea03bab21b3b8fcdc94f674eebd1c5d
KVM: x86/mmu: Allow yielding during MMU notifier unmap/zap, if possible

Let the TDP MMU yield when unmapping a range in response to a MMU
notification, if yielding is allowed by said notification.  There is no
reason to disallow yielding in this case, and in theory the range being
invalidated could be quite large.

Cc: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210402005658.3024832-11-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c