KVM: x86/mmu: Add lockdep when setting a TDP MMU SPTE
authorBen Gardon <bgardon@google.com>
Tue, 2 Feb 2021 18:57:09 +0000 (10:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:38 +0000 (05:27 -0500)
commit3a9a4aa5657471a02ffb7f9b7f3b7a468b3f257b
tree759f6dbfb36012cb649692f0684c5fa60faf3ea5
parentfe43fa2f407b9d513f7bcf18142e14e1bf1508d6
KVM: x86/mmu: Add lockdep when setting a TDP MMU SPTE

Add lockdep to __tdp_mmu_set_spte to ensure that SPTEs are only modified
under the MMU lock.

No functional change intended.

Reviewed-by: Peter Feiner <pfeiner@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210202185734.1680553-4-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c