]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
KVM: mmu: Add slots_arch_lock for memslot arch fields
authorBen Gardon <bgardon@google.com>
Tue, 18 May 2021 17:34:11 +0000 (10:34 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:26 +0000 (13:09 -0400)
commitb10a038e84d188e15819058b2978b2daa9853aeb
tree6a3215a5a0ee02fcfd0e3da7fb1456d1a4756274
parentddc12f2a12917c10b0deb0928f0560bffb7729ec
KVM: mmu: Add slots_arch_lock for memslot arch fields

Add a new lock to protect the arch-specific fields of memslots if they
need to be modified in a kvm->srcu read critical section. A future
commit will use this lock to lazily allocate memslot rmaps for x86.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210518173414.450044-5-bgardon@google.com>
[Add Documentation/ hunk. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/locking.rst
include/linux/kvm_host.h
virt/kvm/kvm_main.c