]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Add helpers to read/write TDP MMU SPTEs and document RCU
authorSean Christopherson <seanjc@google.com>
Sat, 26 Feb 2022 00:15:28 +0000 (00:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 14:31:52 +0000 (09:31 -0500)
commit5564a9361d52709d7e1c20abee1f5ade97598ff1
tree832b7a195e3aa0b7989cfab3f5b408bb480b7178
parent4def6c13dbe8456c3b43589f2d03399fce2d3264
KVM: x86/mmu: Add helpers to read/write TDP MMU SPTEs and document RCU

Add helpers to read and write TDP MMU SPTEs instead of open coding
rcu_dereference() all over the place, and to provide a convenient
location to document why KVM doesn't exempt holding mmu_lock for write
from having to hold RCU (and any future changes to the rules).

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220226001546.360188-11-seanjc@google.com>
Reviewed-by: Mingwei Zhang <mizhang@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_iter.c
arch/x86/kvm/mmu/tdp_iter.h
arch/x86/kvm/mmu/tdp_mmu.c