diff options
author | Sean Christopherson <seanjc@google.com> | 2021-04-01 17:56:55 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-17 08:31:08 -0400 |
commit | f922bd9bf33bd5a8c6694927f010f32127810fbf (patch) | |
tree | d6332bb7dfb2d138a1cacad14019a3a891e6770c /security | |
parent | b4c5936c47f86295cc76672e8dbeeca8b2379ba6 (diff) |
KVM: Move MMU notifier's mmu_lock acquisition into common helper
Acquire and release mmu_lock in the __kvm_handle_hva_range() helper
instead of requiring the caller to do the same. This paves the way for
future patches to take mmu_lock if and only if an overlapping memslot is
found, without also having to introduce the on_lock() shenanigans used
to manipulate the notifier count and sequence.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210402005658.3024832-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions