]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kvm/mmu/paging_tmpl.h
KVM: x86/mmu: Use an rwlock for the x86 MMU
authorBen Gardon <bgardon@google.com>
Tue, 2 Feb 2021 18:57:24 +0000 (10:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:43 +0000 (05:27 -0500)
commit531810caa9f4bc99ffbb90e09256792c56a6b07a
tree2f8d7a33fea95476a3181b4f1aca2e1f973a4295
parentf3d4b4b1dc1c5fb9ea17cac14133463bfe72f170
KVM: x86/mmu: Use an rwlock for the x86 MMU

Add a read / write lock to be used in place of the MMU spinlock on x86.
The rwlock will enable the TDP MMU to handle page faults, and other
operations in parallel in future commits.

Reviewed-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210202185734.1680553-19-bgardon@google.com>
[Introduce virt/kvm/mmu_lock.h - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/page_track.c
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/dirty_ring.c
virt/kvm/kvm_main.c
virt/kvm/mmu_lock.h [new file with mode: 0644]