KVM: x86/mmu: Protect the tdp_mmu_roots list with RCU
authorBen Gardon <bgardon@google.com>
Thu, 1 Apr 2021 23:37:31 +0000 (16:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:06:01 +0000 (09:06 -0400)
commitc0e64238ac53e8226e3fe72279e5e76253e85f88
tree37c35adf04618825ada74f921afd773835fc4ecf
parentfb10129335ca6cc7a229226b03f54394757d773d
KVM: x86/mmu: Protect the tdp_mmu_roots list with RCU

Protect the contents of the TDP MMU roots list with RCU in preparation
for a future patch which will allow the iterator macro to be used under
the MMU lock in read mode.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210401233736.638171-9-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/tdp_mmu.c